Hi there,
I got a problem, I’m developing a project using ESP32 with Direct Connected.
I plan to add the OTA feature, update the firmware automatically from SmartThings app
So, i found this topic and i follow their instructions.
But, after following all the instructions, the Firmware update card in SmartThings App has not appeared.
this log result:
I (10807) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“firmwareUpdate”,“attribute”:“currentVersion”,“value”:“out_v2”,“providerData”:{“sequenceNumber”:1,“timestamp”:“1659684648725”}}]}
Sequence number return : 1
value is NULL
value is NULL
value is NULL
I (10837) [IoT]: iot_cap_call_init_cb(1105) > Call init_cb for switch capability
I (10847) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“off”,“providerData”:{“sequenceNumber”:2,“timestamp”:“1659684648768”}}]}
Sequence number return : 2
I (10877) [IoT]: iot_cap_call_init_cb(1105) > Call init_cb for powerMeter capability
I (10887) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“powerMeter”,“attribute”:“power”,“value”:0,“unit”:“W”,“providerData”:{“sequenceNumber”:3,“timestamp”:“1659684648805”}}]}
Sequence number return : 3
I (10917) [IoT]: _do_cmd_tout_check(1041) > New state updated for 8
I (10927) [IoT]: _do_cmd_tout_check(1048) > previous error code
Connection closed,all data received
isNewVersion : 1
I (34587) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“firmwareUpdate”,“attribute”:“availableVersion”,“value”:“out_v4”,“providerData”:{“sequenceNumber”:4,“timestamp”:“1659684672502”}}]}
Sequence number return : 4
I (112707) [IoT]: iot_cap_sub_cb(844) > command : {“commands”:[{“id”:“c4c150ad-4afb-479d-9c5a-d974a2f00418”,“component”:“main”,“capability”:“switch”,“command”:“on”,“arguments”:}]}
called [caps_switch_cmd_on_cb] func with num_args:0
I (112717) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“on”,“providerData”:{“sequenceNumber”:5,“timestamp”:“1659684750635”}}]}
Sequence number return : 5
I (127347) [IoT]: iot_cap_sub_cb(844) > command : {“commands”:[{“id”:“16b477a9-0b4a-4e5f-9dcf-4aa1c5a75c3f”,“component”:“main”,“capability”:“switch”,“command”:“off”,“arguments”:}]}
called [caps_switch_cmd_off_cb] func with num_args:0
I (127357) [IoT]: st_cap_send_attr(613) > publish event, topic : /v1/deviceEvents/61bb79a9-884b-4b8d-a782-f88759de9485, payload :
{“deviceEvents”:[{“component”:“main”,“capability”:“switch”,“attribute”:“switch”,“value”:“off”,“providerData”:{“sequenceNumber”:6,“timestamp”:“1659684765276”}}]}
Sequence number return : 6
So, anyone can resolve this issue?
Regards,
Thank you