mreyes47 New Member Nov 16, 2023 #1 Hello, I'm pushing a mqtt message to cloumqtt which is a mqtt broker with the following. mqtt.publish2: mqtt.Publish2("drawers/location", serializator.ConvertObjectToBytes("long string of about 100 characters"), 0, False) Cloudmqtt receives the data but not in a text format. It currently shows: Is there a way to send text via mqtt that shows up as text at cloudmqtt?
Hello, I'm pushing a mqtt message to cloumqtt which is a mqtt broker with the following. mqtt.publish2: mqtt.Publish2("drawers/location", serializator.ConvertObjectToBytes("long string of about 100 characters"), 0, False) Cloudmqtt receives the data but not in a text format. It currently shows: Is there a way to send text via mqtt that shows up as text at cloudmqtt?
Solution Erel Nov 16, 2023 You are not sending text. You are sending serialized text. cloudmqtt has no way to deserialize it. If you want to send text: B4X: mqtt.Publish2("drawers/location", "long string of about 100 characters".GetBytes("utf8"), 0, False)
You are not sending text. You are sending serialized text. cloudmqtt has no way to deserialize it. If you want to send text: B4X: mqtt.Publish2("drawers/location", "long string of about 100 characters".GetBytes("utf8"), 0, False)
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2023 #2 You are not sending text. You are sending serialized text. cloudmqtt has no way to deserialize it. If you want to send text: B4X: mqtt.Publish2("drawers/location", "long string of about 100 characters".GetBytes("utf8"), 0, False) Upvote 0 Solution
You are not sending text. You are sending serialized text. cloudmqtt has no way to deserialize it. If you want to send text: B4X: mqtt.Publish2("drawers/location", "long string of about 100 characters".GetBytes("utf8"), 0, False)