Closed kehusa closed 8 years ago
Is the raw data OK in the code generated from ThingML? Is it still OK just before sending on the Kevoree port?
ThingML does not make any changes to the message content. It is equal on the MQTTSubClient port and inside the ThingML component.
@kehusa do you use the Java or the Javascript version of the MQTTSubClient ?
MQTTSubClient v2.0.2 should fix this issue.
tested and works, thanks
When receiving messages from MQTTSubClient on port onTopicAndMsg I get the following content:
{"topic":"sensor/button","message":{"type":"Buffer","data":[49,48,50]}}
The topic part is ok, but I don't understand how to deal with the message partWhen receiving messages from MQTTSubClient on port onMsg I get:
102
(which is what I expect)Why is the serialisation different?