Will it possible to mention dynamic key value in the templates?
JAddNumberToObject(bodyAlert, “SensorName”, 12.1);
I have to mention all sensorNames in templates and it is wasting a lot of memory and sending the zero values for other sensors even they are not sending any data.
Example:
JAddNumberToObject(bodyAlert, “SensorName1”, 12.1);
JAddNumberToObject(bodyAlert, “SensorName2”, 12.1);
JAddNumberToObject(bodyAlert, “SensorName3”, 12.1);
JAddNumberToObject(bodyAlert, “SensorName4”, 12.1);
In real-time scenario, I will send one sensorID at a time.