Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libmDot by
mDotEvent.h
00001 #include "LoRaMacEvent.h" 00002 #include "MTSLog.h" 00003 00004 class mDotEvent : public LoRaMacEvent { 00005 public: 00006 00007 virtual ~mDotEvent() {} 00008 00009 /*! 00010 * MAC layer event callback prototype. 00011 * 00012 * \param [IN] flags Bit field indicating the MAC events occurred 00013 * \param [IN] info Details about MAC events occurred 00014 */ 00015 virtual void MacEvent (LoRaMacEventFlags *flags, LoRaMacEventInfo *info) { 00016 logDebug("mDotEvent"); 00017 00018 if (flags->Bits.Rx) { 00019 logDebug("Rx"); 00020 00021 // Event Object must delete RxBuffer 00022 delete[] info->RxBuffer; 00023 } 00024 } 00025 00026 virtual uint8_t MeasureBattery(void) { 00027 return 255; 00028 } 00029 };
Generated on Tue Jul 12 2022 19:53:49 by
