Hi,
I’ve been trying to update several things at runtime, after RainMaker has been initialized and started, but I haven’t had any success.
Specifically, I’m trying to:
- update a dropdown list
- add or remove parameters
- change the layout order
I’ve tried multiple approaches, but nothing has reflected on the RainMaker app:
- adding, removing, or updating parameters
- adding or removing devices
- adding or removing nodes (which fails because once a node is initialized, it cannot be deinitialized)
- starting or stopping RainMaker
Is it possible to update anything besides the parameter values without fully resetting the ESP32? Can someone guide me to a docu/example?
Thank you
Updating layout / param list / dropdown list during runtime
Re: Updating layout / param list / dropdown list during runtime
Changes to node configuration will reflect if you call esp_rmaker_report_node_details() after making the changes, like add/remove param, change dropdowns, add/remove device, etc. Do give it a try.
Re: Updating layout / param list / dropdown list during runtime
That is working fast and great, thank you, no need for a reset anymore.
Furthermore, I could not find an interface to remove a parameter, only to delete it.
As a workaround, I am using the UI.HIDDEN type:
1. esp_rmaker_param_add_ui_type(param, ESP_RMAKER_UI_HIDDEN)
2. esp_rmaker_report_node_details
Is this correct? I am running on IOS at the moment, and it seems to be working fine.
Right now, I assume that any change in the order implies device re-creation:
1. esp_rmaker_node_remove_device
2. esp_rmaker_device_delete
3. esp_rmaker_device_create
4. esp_rmaker_device_add_param (in the desired order)
5. esp_rmaker_node_add_device
6. esp_rmaker_report_node_details
Is this the correct approach to modify the parameter order?
All of these are more configuration phase, so happen 4-5 times at device configuration, and never after that, so no abuse on them
Furthermore, I could not find an interface to remove a parameter, only to delete it.
As a workaround, I am using the UI.HIDDEN type:
1. esp_rmaker_param_add_ui_type(param, ESP_RMAKER_UI_HIDDEN)
2. esp_rmaker_report_node_details
Is this correct? I am running on IOS at the moment, and it seems to be working fine.
Right now, I assume that any change in the order implies device re-creation:
1. esp_rmaker_node_remove_device
2. esp_rmaker_device_delete
3. esp_rmaker_device_create
4. esp_rmaker_device_add_param (in the desired order)
5. esp_rmaker_node_add_device
6. esp_rmaker_report_node_details
Is this the correct approach to modify the parameter order?
All of these are more configuration phase, so happen 4-5 times at device configuration, and never after that, so no abuse on them
Who is online
Users browsing this forum: No registered users and 1 guest
