If I am receiving a data record at a time as a JSON array from an IoT device in my channel. The received message looks like this :
{
"state":{
"reported":{
"temperature": 24.28,
"humidity": 37.67,
"pressure": 1019.57,
"proximity": 1485
}
}
}
the datastore is:
{
reported = {
temperature = 24.28,
humidity = 37.67,
pressure = 1019.57,
proximity = 1485
}
}
My desired result is :
temperature humidity pressure proximity
Value1 Value2 Value3 Value4
AnotherValue1 AnotherValue2 AnotherValue3 AnotherValue4
How can I get IoT Analytics to create a new row in the datastore for each element within the received JSON array?