Library for LoRa communication using MultiTech MDOT.
Dependents: mDot_test_rx adc_sensor_lora mDotEVBM2X mDot_AT_firmware ... more
Function documentation is in mDot.h
Warning
Using libmDot 2.0.3 and above with an existing application may require a change in the MacEvent handler!
Compile applications with mbed v121 and mbed-rtos v116 libraries.
In AT Command Firmware remove line 803.
CommandTerminal/CommandTerminal.cpp
delete[] info->RxBuffer;
Likewise, if your application is handling events from the library asynchronously.
mDotEvent.h
- Committer:
- Leon Lindenfelser
- Date:
- 2016-11-18
- Revision:
- 17:0da384ba484b
- Parent:
- 15:b50f92f1c6ff
File content as of revision 17:0da384ba484b:
#include "LoRaMacEvent.h" #include "MTSLog.h" class mDotEvent : public LoRaMacEvent { public: virtual ~mDotEvent() {} /*! * MAC layer event callback prototype. * * \param [IN] flags Bit field indicating the MAC events occurred * \param [IN] info Details about MAC events occurred */ virtual void MacEvent(LoRaMacEventFlags *flags, LoRaMacEventInfo *info) { logDebug("mDotEvent"); if (flags->Bits.Rx) { logDebug("Rx"); // Event Object must delete RxBuffer delete[] info->RxBuffer; } } virtual uint8_t MeasureBattery(void) { return 255; } };