Ok, great. I may be pushing the byte limit too close. Can I trust the template size return value? And use the rest for payload?
Yes, that is what I would do!
Hi,
Did you look into this? I have checked that template.bytes + payload is below 256 bytes total.
– gaute
Hi @gauteh,
Yes, the firmware team is looking into this issue. It’s a very tricky situation with Starnote/NTN as the maximum packet size is 256 bytes. However, as the end user it’s almost impossible for you to perfectly calculate the exact number of bytes your Note is going to use. For example, if anything being sent in the packet requires encryption, that takes 28 bytes out. In NTN mode I might enforce an artificial limit of 200 bytes for now to see if that helps. You are on the bleeding edge here as most of our Starnote users are not sending this much data!
Rob
Hm ok. I have about 10 bytes margin calculated in. Going to the field in the north Sea in 1.5 weeks. Then I really need it to work!