Skip to content

Commit

Permalink
Merge pull request #76 from NightSkySK/clear-ota-active
Browse files Browse the repository at this point in the history
* Post OTA_STOPPED_EVENT once new image verification finished
  • Loading branch information
chinglee-iot committed Mar 14, 2024
2 parents a568740 + daca8fb commit 10272e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ static void prvOtaAppCallback( OtaJobEvent_t event,
ESP_LOGE( TAG, "Failed to set image state as accepted with error %d.", err );
}

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

case OtaJobEventProcessed:
Expand Down

0 comments on commit 10272e9

Please sign in to comment.