From a7ae1fa5a3c7375fb767109a45630d09cea007c2 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 Fixes #120 --- main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 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..c40d168 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 @@ -1038,11 +1038,10 @@ static bool sendSuccessMessage( void ) * 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,