This is an example application based on Mbed-OS LoRaWAN protocol APIs. The Mbed-OS LoRaWAN stack implementation is compliant with LoRaWAN v1.0.2 specification.
Dependents:
Projet_de_bachelor_code
Projet_de_bachelor_code
4 comments:
sandeepvarma
#
16 Nov 2018
Hi Christian,
I am also facing same problem, When I try to send a downlink message to the end device it shows Error code -1001.
and i have one doubt , How can i reduce data (27 bytes of data) and how can i decode packet at server(the things network).
Hi Hasnain
Great !!! It's work on port 15.
Could you send an exemple to use the second receive() API incarnation ? I don't find it in the API doc
Thank you for help
Here is an example for receive() API incarnation 2.
Use of alternate receive() API
uint8_t data_buf[50]; // say your buffer where you wish to receive
uint8_t port; // var to store port number provided by the stack
int flags; // var to store flags provided by the stack
lorawan_status_t retcode = receive(data_buf, 50, port, flags);
For the definition of 'flags', check this link https://github.com/ARMmbed/mbed-os/blob/master/features/lorawan/lorawan_types.h#L49
Hi Christian, I am also facing same problem, When I try to send a downlink message to the end device it shows Error code -1001. and i have one doubt , How can i reduce data (27 bytes of data) and how can i decode packet at server(the things network).