Skip to content

Commit a7ae1fa

Browse files
committed
Remove "expectedVersion" field from job update message
Fixes #120
1 parent d628228 commit a7ae1fa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,11 +1038,10 @@ static bool sendSuccessMessage( void )
10381038
* Creating the message which contains the status of OTA job.
10391039
* It will be published on the topic created in the previous step.
10401040
*/
1041-
size_t messageBufferLength = Jobs_UpdateMsg( Succeeded,
1042-
"2",
1043-
1U,
1044-
messageBuffer,
1045-
UPDATE_JOB_MSG_LENGTH );
1041+
size_t messageBufferLength = snprintf( messageBuffer,
1042+
UPDATE_JOB_MSG_LENGTH,
1043+
"%sSUCCEEDED\"}",
1044+
JOBS_API_STATUS );
10461045

10471046
result = prvMQTTPublish( topicBuffer,
10481047
topicBufferLength,

0 commit comments

Comments
 (0)