Not working for longer strings
AsadAmir111 opened this issue · 0 comments
I am using publishTelemetry(CloudData) where CloudData is my string in JSON form I want to send to the cloud from my esp32 device. For smaller sizes of CloudData I am able to receive the correct message body when I pull it from a pub/sub Subscription. But for longer strings the message body is replaced with the text "device-esp32-connected". Since this is not in JSON form my entire pipeline fails once this happens. I know the size of the JSON I am sending is less than 256KB which is the limit for Google Cloud IoT core so the problem must be in sending the data.
A long message looks like this:
A short message looks like this:
I need to know what changes I need to do in the code to correct the long messages.