dimanche 28 août 2016

Convert array of bytes to string

Hi
I am using the jMQTT with B4A.
The receive sub:

Private Sub mqtt_MessageArrived (Topic As String, Payload() As Byte)
....


uses an array of bytes to the received messages.

I am allways receiving text messages. How can I write that to a label ?

Vidal

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bKV52F
via IFTTT

Aucun commentaire:

Enregistrer un commentaire