First commit
Fork of libmDot by
Embed:
(wiki syntax)
Show/hide line numbers
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 1.7.2