Closed zfields closed 2 years ago
I'm attempting to send the following Note to Notehub:
{ "req": "note.add", "sync": true, "file": "012345678901234567890123#diag.qo", "id": 9171979, "body": { "mem.alloc.bytes": 1004, "mem.free.bytes": 888, "mem.heap.bytes": 53488, "voltage": 3.261 } }
"file": value has been expanded from * to demonstrate its actual size
"file":
*
Here are the character count statistics...
As you can see, even in the best case (177), the Note body is greater than MESSAGE_MAX_BODY (170).
body
MESSAGE_MAX_BODY
MESSAGE_MAX_BODY is defined in config_radio.h:
config_radio.h
#define MESSAGE_MAX_BODY 170 // TIMEOUT:4000 BW:250 SPREAD:12 CODING:4/5 w/LDRO
The crazy thing is that the message arrives at Notehub, but the Sparrow application becomes unstable after it attempts to send the Note.
fix with #14
I'm attempting to send the following Note to Notehub:
"file":
value has been expanded from*
to demonstrate its actual sizeHere are the character count statistics...
As you can see, even in the best case (177), the Note
body
is greater thanMESSAGE_MAX_BODY
(170).MESSAGE_MAX_BODY
is defined inconfig_radio.h
:The crazy thing is that the message arrives at Notehub, but the Sparrow application becomes unstable after it attempts to send the Note.