How can I correctly cast my value in byte before sending

I think, first of my problem, as the sensor value are in int (two octet) it can not be store in byte (1 octet). It the reason why number over 255 aredestroy as the 969 into 201.

That correct?

In spite of the doc, I do not understand how I can adapt my struct ‘Payload p’ to make it ready for sending the sensors values in byte and not over 51byte.

Help will be appreciate :slight_smile: