diff --git a/main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c b/main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c index 49818f6..cd6460c 100644 --- a/main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c +++ b/main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c @@ -1037,12 +1037,11 @@ static bool sendSuccessMessage( void ) * AWS IoT Jobs library: * Creating the message which contains the status of OTA job. * It will be published on the topic created in the previous step. - */ - size_t messageBufferLength = Jobs_UpdateMsg( Succeeded, - "2", - 1U, - messageBuffer, - UPDATE_JOB_MSG_LENGTH ); + */ + size_t messageBufferLength = snprintf( messageBuffer, + UPDATE_JOB_MSG_LENGTH, + "%sSUCCEEDED\"}", + JOBS_API_STATUS ); result = prvMQTTPublish( topicBuffer, topicBufferLength,