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 090d2c2Copy full SHA for 090d2c2
main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.c
@@ -1037,12 +1037,11 @@ static bool sendSuccessMessage( void )
1037
* AWS IoT Jobs library:
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