TTN payload uplink

This does not match your decoder. First of all your humidity is just one byte, not two. Then the next hurdle is the way your compiler packs the structure and the order of bytes used by the controller, all things that you can not control and do not match your (current) assumptions.

I would advice to use a byte array and putting the values ‘manually’ at the position you want them. That way you control what goes where and do not run into issues when you start using another device where the architecture differs and the compiler behaves differently.

2 Likes