Temp Measurement

Fork of libmDot by MultiTech

mDotEvent.h

Committer:
elmor34
Date:
2016-11-12
Revision:
16:1668497b1760
Parent:
13:0f89ec319c18
Child:
15:b50f92f1c6ff

File content as of revision 16:1668497b1760:

#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;
        }
};