I just added a virtual text device and intended to update it 'by name' as I now do from Lua and I have other (older) working exact same exemple but here, for a new such device:
Code: Select all
--commandArray[#commandArray+1]={['UpdateDevice'] = otherdevices_idx[devMetar]..'|0|'..metarText}
commandArray[#commandArray+1]={['UpdateDevice'] = '790|0|'..metarText}
attempt to concatenate a nil value (field '?')
Second, with idx explicitly set works! No error on devMetar name, of course, and this name is not already existing in my system. Cannot even print otherdevices_idx[devMetar] content for debug (same error).
As I lately converted all my Lua scripts IDX use to names using otherdevices_idx table, far after devices creation, I wonder if this table may not be updated often???