MQTT hints to send Data

Hello together

I’ve been trying to control two LEDs via MQTT for hours.With TheThings Network i just can send 01,02 or 03 and it works. What have I done wrong? Do I have to adjust Payload Encoder? I just got a acknowledged:false.

MQTT Topic

Publish data
{ “confirmed”: true, “fPort”: 10, “data”: “MDE=” }

Adafruit Feather 32u Code line 120 -140

This will only accept messages of length 1 byte


This is two bytes, 0x30 and 0x31 because you have encoded the printable ASCII digits “01” probably as a result of putting a string (perhaps a value mistakenly converted to a string) through your base64 encoder.

What you want to send is “AQ==” which is the single-byte value 0x01

1 Like

Thanks it worked. I never would have thought of it.

Do you know why messages don’t arrive all the time?