Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
44:c73f2ca79669
Parent:
43:62de0e05ab6b
Child:
48:1c7861d80d16
diff -r 62de0e05ab6b -r c73f2ca79669 src/CommandParser/cmd.cpp
--- a/src/CommandParser/cmd.cpp	Fri Sep 09 21:20:26 2016 +0000
+++ b/src/CommandParser/cmd.cpp	Mon Sep 12 14:38:39 2016 +0000
@@ -521,12 +521,38 @@
 
     mDot::mdot_stats stats = GLOBAL_mdot->getStats();
 
-    printf("\r         Up: %u\n", stats.Up);
-    printf("\r       Down: %u\n", stats.Down);
-    printf("\r      Joins: %u\n", stats.Joins);
-    printf("\r  JoinFails: %u\n", stats.JoinFails);
-    printf("\r MissedAcks: %u\n", stats.MissedAcks);
-    printf("\r  CRCErrors: %u\n", stats.CRCErrors);
+    printf("\r                        Up: %u\n", stats.Up);
+    printf("\r                      Down: %u\n", stats.Down);
+    printf("\r                     Joins: %u\n", stats.Joins);
+    printf("\r                 JoinFails: %u\n", stats.JoinFails);
+    printf("\r                MissedAcks: %u\n", stats.MissedAcks);
+    printf("\r                 CRCErrors: %u\n", stats.CRCErrors);
+    printf("\r\n");
+    printf("\r                 Freq band: %u\n", GLOBAL_mdot->getFrequencyBand());
+    printf("\r              Freq subband: %u\n", GLOBAL_mdot->getFrequencySubBand());
+    printf("\r         Session data rate: %u\n", GLOBAL_mdot->getSessionDataRate());
+    printf("\r       Public Network Mode: %s\n", GLOBAL_mdot->getPublicNetwork() ? "yes" : "no");
+    printf("\r   Application device port: %u\n", GLOBAL_mdot->getAppPort());
+    printf("\r                     Class: %s\n", GLOBAL_mdot->getClass().c_str());
+    printf("\r         Max packet length: %u\n", GLOBAL_mdot->getMaxPacketLength());
+    // TODO: network address
+    printf("\r              Network name: %s\n", GLOBAL_mdot->getNetworkName().c_str());
+    // TODO: get network ID
+    printf("\r          Join byter order: %s\n", GLOBAL_mdot->getJoinByteOrder() == 0 ? "LSB" : "MSB");
+    printf("\r              Join retries: %u\n", GLOBAL_mdot->getJoinRetries());
+    printf("\r                 Join mode: %u\n", GLOBAL_mdot->getJoinMode());
+    printf("\r       Network join status: %s\n", GLOBAL_mdot->getNetworkJoinStatus() ? "yes" : "no");
+    printf("\r           Link fail count: %u\n", GLOBAL_mdot->getLinkFailCount());
+    printf("\r   Packets Tx'd to gateway: %u\n", GLOBAL_mdot->getUpLinkCounter());
+    printf("\r Packets Rx'd from gateway: %u\n", GLOBAL_mdot->getDownLinkCounter());
+    printf("\r            AES encryption: %s\n", GLOBAL_mdot->getAesEncryption() ? "enabled" : "disabled");
+    printf("\r              Tx data rate: %u\n", GLOBAL_mdot->getTxDataRate());
+    printf("\r                  Tx power: %u\n", GLOBAL_mdot->getTxPower());
+    printf("\r              Antenna gain: %u\n", GLOBAL_mdot->getAntennaGain());
+    printf("\r             Min frequency: %u\n", GLOBAL_mdot->getMinFrequency());
+    printf("\r             Max frequency: %u\n", GLOBAL_mdot->getMaxFrequency());
+    printf("\r               CRC enabled: %s\n", GLOBAL_mdot->getCrc() ? "yes" : "no");
+    printf("\r               ACK enabled: %s\n", GLOBAL_mdot->getAck() ? "yes" : "no");
 
     printf("\r\n");
 }