Skip to content

Commit 10272e9

Browse files
authored
Merge pull request #76 from NightSkySK/clear-ota-active
* Post OTA_STOPPED_EVENT once new image verification finished
2 parents a568740 + daca8fb commit 10272e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ static void prvOtaAppCallback( OtaJobEvent_t event,
566566
ESP_LOGE( TAG, "Failed to set image state as accepted with error %d.", err );
567567
}
568568

569+
/* Signal coreMQTT-Agent network manager that an OTA job has stopped. */
570+
xCoreMqttAgentManagerPost( CORE_MQTT_AGENT_OTA_STOPPED_EVENT );
569571
break;
570572

571573
case OtaJobEventProcessed:

0 commit comments

Comments
 (0)