Closed nravin5 closed 1 year ago
code:.........
/ Create a device and add the relevant parameters to it / fan_device = esp_rmaker_fan_device_create("Fan1", NULL, DEFAULT_POWER); esp_rmaker_device_add_cb(fan_device, write_cb, NULL); esp_rmaker_device_add_param(fan_device, esp_rmaker_speed_param_create("speed1", DEFAULT_SPEED)); esp_rmaker_node_add_device(node, fan_device);
fan_device1 = esp_rmaker_fan_device_create("Fan2", NULL, DEFAULT_POWER);
esp_rmaker_device_add_cb(fan_device1, write_cb, NULL);
esp_rmaker_device_add_param(fan_device1, esp_rmaker_speed_param_create("speed2", DEFAULT_SPEED));
esp_rmaker_node_add_device(node, fan_device1);
................................................................................
19:37:57.619 -> [0;32mI (793736) esp_rmaker_param: Received params: {"Fan1":{"speed1":1}}[0m 19:37:57.619 -> [0;32mI (793736) app_main: Received write reque Received params: {"Fan1":{"speed1":1}}[0m 19:37:58.651 -> [0;32mI (794766) app_main: Received write request via : Local[0m 19:38:14.520 -> [0;32mI (810626) esp_rmaker_param: Received params: {"Fan1":{"speed1":2}}[0m 19:38:14.520 -> [0;32mI (810626) app_main: Received write request via : Cloud[0m 19:38:15.650 -> [0;32mI (811756) esp_rmaker_param: Received params: {"Fan1":{"speed1":2}}[0m 19:38:15.650 -> [0;32mI (811756) app_main: Received write request via : Cloud[0m 19:38:18.512 -> [0;32mI (814616) esp_rmaker_param: Received params: {"Fan1":{"speed1":3}}[0m 19:38:18.512 -> [0;32mI (814626) app_main: Received write request via : Cloud[0m 19:38:25.786 -> [0;32mI (821886) esp_rmaker_param: Received params: {"Fan1":{"speed2":1}}[0m 19:38:27.193 -> [0;32mI (823326) esp_rmaker_par2":1}}[0m 19:38:32.540 -> [0;32mI (828656) esp_rmaker_param: Received params: {"Fan1":{"speed2":3}}[0m
@nravin5 , is this with Android app or iOS?
@nravin5 , is this with Android app or iOS?
Android App
@nravin5 , is this with Android app or iOS?
when we open app what ever the first switch we press....like fan or switch ........... then we chance speed the speed param attached with that pressed switch ............ again close app and reopen app then press some other switch and then change fan param then again param attached with new pressed switch.
@nravin5 Thanks for reporting this issue. We are working on fixing this issue.
Similar situation in here, when updating the parameter from the app (Android) the node receives the parameter for a different device. Reporting with rainmaker.py client is working fine.
Hi @sebamsc , we are working on fixing this issue. Will be fixed and released soon.
Hi @nravin5 @sebamsc , fix is available in latest release (version 2.11.2).
Answers checklist.
IDF / ESP32-Arduino version.
ESP-IDF Release v5.0.2 or ESP-IDF Release v5.0.1
Operating System used.
Windows
How did you build your project?
Other (please specify in More Information)
Development Kit.
esp32c3
What is the expected behavior?
working through visual studio
my code .... / Create a device and add the relevant parameters to it / fan_device = esp_rmaker_fan_device_create("Fan1", NULL, DEFAULT_POWER); esp_rmaker_device_add_cb(fan_device, write_cb, NULL); esp_rmaker_device_add_param(fan_device, esp_rmaker_speed_param_create(ESP_RMAKER_DEF_SPEED_NAME, DEFAULT_SPEED)); esp_rmaker_node_add_device(node, fan_device);
What is the actual behavior?
Only problem when speed changed throuch App
but with alexa app or voice works well.
may be issue with app or Rainmaker code.
Steps to reproduce.
Debug Logs.
More Information.
No response