Library for LoRa communication using MultiTech MDOT.
Dependents: mDot_LoRa_Connect_CSA_Light mDot_LoRa_Connect_CSA_RH_Temp
Fork of libmDot by
mDotEvent.h
- Committer:
- Mehrad
- Date:
- 2016-06-10
- Revision:
- 15:9e811e5a03be
- Parent:
- 13:0f89ec319c18
File content as of revision 15:9e811e5a03be:
#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;
}
};
