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!
