Closed larkolab closed 7 years ago
looking at the LoRa spec 4.3.2 Port field
the port field is optional "If the frame payload field is not empty, the port field must be present" so that's a reasonable request!
done - thank you for the suggestion! Ant
great, thanks! :)
Hello Anthony,
And first of all, things for this library, it's great! :)
I'm trying to use it with Node-Red do do a minimal LoRaWAN server, and I'm trying to send a downlink packet to respond to a "Confirmed Data Up". This kind of response does not require a FRMPayload, and so does not require a FPort.
But I can't find the way to specify such a packet to the fromFields() function. When I set the 'payload' field empty, I still get the FPort set. Can we avoid it?
My code is like:
And I get the frame: YK8BzAAgAAABmjJuDQ==
It's not really critical, but we could avoid this extra-byte for FPort. Is that possible?
Thanks a lot