How to initialize default values for Edge property with BaseType as Infotable and set values in LUA
Hi Community,
Can you please let us know how to initialize default values for Edge property with Base Type : Infotable and set values later in LUA script?
I have initialized EDGE property in LUA by following the syntax below. I could see the property "MeteringApplication" on ThingWorx platform and could successfully do remote binding. However, post binding, I was not able to see the default value being populated on the Sub-property "StatusMessage" as per syntax below:
dataShapes.MeterReading(
{ name = "Temp", baseType = "INTEGER" },
{ name = "Amps", baseType = "NUMBER" },
{ name = "StatusMessage", baseType = "STRING", aspects = {defaultValue="The meter is currently offline"} },
)
properties.MeteringApplication = { baseType="INFOTABLE", pushType="ALWAYS", dataShape="MeterReading" }
So, I would like to hear from you how to set Default values for Infotable as baseType on Lua and how Get/Set Sub-property values under "MeteringApplication" property during later point of time to perform some tasks in LUA.
Thank you for you help in advance.

