LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excluding the byte count from MQTT payload

Hey, i kinda new in the labview, basicly i have a program that read data from hardware using labview and sending the processed data into database with mqtt protocol. I have a problem that when i pubblish from the labview, it add another byte into the payload that likely to be the name of payload and the byte count of the payload. I'm using a basic mqtt publish from the library. is it possible to excluding that from my payload?
i attached the screenshot of the mqtt publish program, the payload structure and the published payload

0 Kudos
Message 1 of 2
(138 Views)

If you are flattening the data yourself, use Publish (Raw Payload).vi.

 

Alternatively, you could create your own Serializer object that flattens data to e.g. JSON.

 

cordm_0-1759819565268.png

 

Message 2 of 2
(100 Views)