how to change payload in publish.c to integer value?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Soram
Employee
Employee
10 sign-ins 5 replies posted 5 questions asked

Hi, in mqtt client anycloud is there a way to change the publishInfo.pPayload value in publisher_task.c file so that I can send numerical value instead of string or turn on ....

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Soram

pPayload is a void pointer in the example. So it should be possible if you pass an integer pointer to the payload. Please let us know if you face any issues with this.

Rakshith_0-1614353784815.png

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
1 Reply
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Soram

pPayload is a void pointer in the example. So it should be possible if you pass an integer pointer to the payload. Please let us know if you face any issues with this.

Rakshith_0-1614353784815.png

Thanks and Regards,
Rakshith M B
0 Likes