Skip to content

Commit c2ce3a5

Browse files
authored
Merge pull request #77 from ActoryOu/otaStopNotificationWhenActivateFail
Notify other tasks that OTA is stopped when fail to activate new image.
2 parents 10272e9 + eceb423 commit c2ce3a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ static void prvOtaAppCallback( OtaJobEvent_t event,
535535
* performed while shutting down please set the second parameter to 0 instead of 1. */
536536
OTA_Shutdown( 0, 1 );
537537

538+
/* Notify the coreMQTT-Agent network manager that an OTA job has been terminated.
539+
* Please note that due to a critical issue in the OTA PAL (Platform Abstraction Layer),
540+
* the OTA service has been shut down and will not function properly after this point. */
541+
xCoreMqttAgentManagerPost( CORE_MQTT_AGENT_OTA_STOPPED_EVENT );
538542

539543
break;
540544

0 commit comments

Comments
 (0)