From 423369ea63b9a4fb42b75baf46a53072331b4295 Mon Sep 17 00:00:00 2001 From: "kshitij.patil" Date: Thu, 5 Jun 2025 14:29:19 +0530 Subject: [PATCH] Remove "expectedVersion" field from job update message --- .../ota_over_mqtt_demo/ota_over_mqtt_demo.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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,