When sending data, packed in a Python struct, the byte limit is 340. When sending text with Python encode, the limit is 120 bytes. When the limit is bypassed to send more than 120 bytes, the message is received as hex-encoded text. Possible solutions:
Figure out why the library imposes the limit of 120 bytes and, if possible, remove it without getting the messages as hex-encoded strings. (Might be due to the underlying RockBLOCK functionality.)
Send 2-3 text messages from one telemetry reading, both with the same datetime stamp.
Send as data and decode the struct on the receiving end. If a web service is set up, the decoding is straightforward.
Description
When sending data, packed in a Python
struct
, the byte limit is 340. When sending text with Pythonencode
, the limit is 120 bytes. When the limit is bypassed to send more than 120 bytes, the message is received as hex-encoded text. Possible solutions:struct
on the receiving end. If a web service is set up, the decoding is straightforward.Knowledge
51
73