Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LORAWAN_DEFAULT_PORT override #24

Open
olivierfavre opened this issue Apr 27, 2020 · 3 comments
Open

LORAWAN_DEFAULT_PORT override #24

olivierfavre opened this issue Apr 27, 2020 · 3 comments

Comments

@olivierfavre
Copy link

Evening!
Thanks for the great job!
Two questions (GNAT):

  1. Is it possible to override in the sketch, not the library LORAWAN_DEFAULT_PORT ?
  2. The NoMotionActivityTimer and InMotionActivityTimer cycles seem to have no effect when the GNAT is powered by USB, normal?
    Great device !
@kriswiner
Copy link
Owner

kriswiner commented Apr 27, 2020 via email

@kriswiner
Copy link
Owner

kriswiner commented Apr 27, 2020 via email

@VinceICPO
Copy link

Looking at the library, I see this is what "LoRaWAN.beginPacket(3);" does. If you add this to your sketch, default port becomes "3". Valid values are 1..223.
Quote from Lora dev portal:
The LoRaWAN specification provides a data delivery field (FRMPayload) and a Port field (FPort) to distinguish between different types of messages. FPort 0 is reserved for MAC messages. Do not use this port to transport data fields. FPort 224 is reserved for MAC compliance testing and FPorts 225-255 are reserved for future standardized application extensions1. This leaves valid port numbers between 1 and 223.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants