We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d628228 commit a7ae1faCopy full SHA for a7ae1fa
main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c
@@ -1038,11 +1038,10 @@ static bool sendSuccessMessage( void )
1038
* Creating the message which contains the status of OTA job.
1039
* It will be published on the topic created in the previous step.
1040
*/
1041
- size_t messageBufferLength = Jobs_UpdateMsg( Succeeded,
1042
- "2",
1043
- 1U,
1044
- messageBuffer,
1045
- UPDATE_JOB_MSG_LENGTH );
+ size_t messageBufferLength = snprintf( messageBuffer,
+ UPDATE_JOB_MSG_LENGTH,
+ "%sSUCCEEDED\"}",
+ JOBS_API_STATUS );
1046
1047
result = prvMQTTPublish( topicBuffer,
1048
topicBufferLength,
0 commit comments