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
Diff: mDotEvent.h
- Revision:
- 13:0f89ec319c18
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mDotEvent.h Mon Apr 04 09:33:30 2016 -0500
@@ -0,0 +1,29 @@
+#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;
+ }
+};
