Basic xdot code to check how many memory is available for user APP after initializing libxdot lorawan stack

Revision:
42:20f6b29a9903
Parent:
41:67feacfab49c
diff -r 67feacfab49c -r 20f6b29a9903 examples/inc/RadioEvent.h
--- a/examples/inc/RadioEvent.h	Mon May 18 13:12:47 2020 -0500
+++ b/examples/inc/RadioEvent.h	Tue May 25 09:54:33 2021 -0500
@@ -4,6 +4,7 @@
 #include "dot_util.h"
 #include "mDotEvent.h"
 #include "Fota.h"
+#include "example_config.h"
 
 class RadioEvent : public mDotEvent
 {
@@ -13,8 +14,8 @@
 
     virtual ~RadioEvent() {}
 
-    virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int16_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries, uint32_t address, bool dupRx) {
-        mDotEvent::PacketRx(port, payload, size, rssi, snr, ctrl, slot, retries, address, dupRx);
+    virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int16_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries, uint32_t address, uint32_t fcnt, bool dupRx) {
+        mDotEvent::PacketRx(port, payload, size, rssi, snr, ctrl, slot, retries, address, fcnt, dupRx);
 
 #if ACTIVE_EXAMPLE == FOTA_EXAMPLE
         if(port == 200 || port == 201 || port == 202) {
@@ -72,7 +73,8 @@
 
         if (flags->Bits.Rx) {
 
-            logDebug("Rx %d bytes", info->RxBufferSize);
+            logInfo("Rx %d bytes", info->RxBufferSize);
+
             if (info->RxBufferSize > 0) {
 #if ACTIVE_EXAMPLE != FOTA_EXAMPLE
                 // print RX data as string and hexadecimal
@@ -83,6 +85,7 @@
         }
     }
 
+
 #if ACTIVE_EXAMPLE == FOTA_EXAMPLE
     virtual void ServerTime(uint32_t seconds, uint8_t sub_seconds) {
         mDotEvent::ServerTime(seconds, sub_seconds);