Closed rakosi2 closed 1 year ago
@rakosi2 , thanks for reporting this. A check would be required to prevent the crash. However, the actual issue is that the param has not been added to the device, as you can see in this error message.
E (1373) esp_rmaker_device: Parameter with name ... already exists in Device
So, the param object does not have a parent, which we are trying to access in the time series call, without a NULL check.
I enabled Time Series and my ESP32 will crash and restart. After a little bit, my console gets flooded with messages like
rtc_store_non_critical_data_write failed group wifi, len 40, err 0x0101
andW (181294) wifi_metrics: Failed to add Wi-Fi metrics key:rssi
after a while of that, I get the following print before a forced restart:
I am unsure if there is something I need to change in menuconfig for Time Series to work correctly.
I do get a few of these prints starting up but I think that is another issue:
E (1373) esp_rmaker_device: Parameter with name ... already exists in Device
E (11688) esp_rmaker_param: Current time not yet available. Cannot report time series data.