Multiple time-series parameters per device
Posted: Sat Nov 08, 2025 2:07 am
I'm trying to add two time-series parameters to a device, like this:
And I'm updating the value with the esp_rmaker_param_update_and_report() function, every minute, one call for each parameter. According to the logs, the update is working, and I can see the last value on the Android app.
The problem is that there's chart data only for the Temperature parameter, for Humidity there's only the last value. Any ideas why that might be? Don't know if that's a limitation of the RainMaker platform, or something I'm doing.
I've tried to change the order which the parameters are added to the device, and the order which I send the data, but no success.
Appreciate any insights!
Code: Select all
env_device = esp_rmaker_device_create("Environment Sensors", "esp.device.env-sensor", NULL);
esp_rmaker_param_t *temp_param = esp_rmaker_param_create("Temperature", "esp.param.temperature", esp_rmaker_float(app_read_temp_sensor()), PROP_FLAG_READ | PROP_FLAG_TIME_SERIES);
esp_rmaker_device_add_param(env_device, temp_param);
esp_rmaker_param_t *hum_param = esp_rmaker_param_create("Humidity", "esp.param.humidity", esp_rmaker_float(app_read_humidity_sensor()), PROP_FLAG_READ | PROP_FLAG_TIME_SERIES);
esp_rmaker_device_add_param(env_device, hum_param);
esp_rmaker_node_add_device(node, env_device);
The problem is that there's chart data only for the Temperature parameter, for Humidity there's only the last value. Any ideas why that might be? Don't know if that's a limitation of the RainMaker platform, or something I'm doing.
I've tried to change the order which the parameters are added to the device, and the order which I send the data, but no success.
Appreciate any insights!