Hello All,
This is Kartik I am trying to fetch all tag data received in array from Ignition Edge but currently I am able to fetch a single array data but I need the array data as per my array length so anyone please help me figuring this out...
Code
var array = msg.payload;
pid = "INSERT INTO [MQTT_IOT].[dbo].[Data] "
pid = pid + "(Timestamp, Name, Datatype, Value) "
pid = pid + " VALUES ('" + array[0].timestamp + "','" + array[0].name + "','" + array[0].datatype +"','"+array[0].doubleValue+"')"
msg.payload = pid
return msg;
Thanks,
Kartik I