This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

grp.create() value_custom
#3
(16.05.2022, 07:43)admin Wrote: This field is called enums in grp.create. It should either be a Lua table or a string containing a JSON object.

Hi again,

It works for objects accepting custom values. However the following code causes temperature to be read as (22) instead of 22.15

Code:
grp.create({
    datatype = 9001,
    address = '3/2/56',
    name = 'Temperature',
    enums = {},
    comment = '',
    forcename =true
  })

So, I also tried

Code:
enums = nil

which works, but point is, if I had once set 
Code:
enums = {},
then
Code:
enums = nil
cannot fix object read value until I delete it and recreate it.

I addition when I log same object when set right I see an empty string for enum key.

Can you please make more clear all the above.

Thanks in advance.
Reply


Messages In This Thread
grp.create() value_custom - by emme - 15.05.2022, 13:25
RE: grp.create() value_custom - by admin - 16.05.2022, 07:43
RE: grp.create() value_custom - by p_xatzi - 29.02.2024, 11:42
RE: grp.create() value_custom - by admin - 29.02.2024, 12:04

Forum Jump: