Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 7 months ago.
mDOT - Recieve info
Hi. I am working for recieve info from the LoRAWAN channel, but the documentacion it's very poor, in the dot_util.cpp, appear only void send_data(std::vector<uint8_t> data), to TX info, but NOT for Recieve !
Have you got some example y DOC in detail how to read le recieve info, payload, size, rssi, snr, etc. I need some example code to undertand how it works.
I am using: mdot-library rev. 2.0.16-4 mbed-os: 5.2.2
thanks. Marcelo Sforza
1 Answer
6 years, 7 months ago.
If you inherit from mDotEvent
you can get events when there is data received (including link quality conditions). See RadioEvent.h in Dot-Examples for an example.
Then instantiate the class and set it as the event handler for the dot object:
RadioEvents radio_events; dot->setEvents(&radio_events);