This mDot firmware will allow USB to directly utilize AT command without the need the use of RS232 DB9 port.

Dependencies:   MTS-Serial libmDot mbed-rtos mbed

Fork of mDot_USB_AT_firmware by Hadi Ho

Revision:
9:ff62b20f7000
Parent:
1:e52ae6584f1c
--- a/CommandTerminal/Command.cpp	Mon Apr 04 13:17:44 2016 +0000
+++ b/CommandTerminal/Command.cpp	Mon Apr 04 09:00:31 2016 -0500
@@ -3,7 +3,7 @@
 
 const char Command::newline[] = "\r\n";
 
-Command::Command(mDot* dot) : _dot(dot)
+Command::Command(mDot* dot) : _dot(dot), _name(""), _text(""), _desc("")
 {
     _usage = "NONE";
     _queryable = false;
@@ -31,7 +31,7 @@
     _errorMessage.assign(message);
 }
 
-const std::string Command::usage() const
+std::string Command::usage() const
 {
     std::string usage(_text);
     usage.append(": ");
@@ -39,7 +39,7 @@
     return usage;
 }
 
-const bool Command::queryable()
+bool Command::queryable() const
 {
     return _queryable;
 }
@@ -64,7 +64,7 @@
             return;
         }
 
-        uint8_t temp;
+        int temp;
         // Read in the key components...
         for (size_t i = 0; i < len; i++)
         {
@@ -75,7 +75,7 @@
     else
     {
         // no delims
-        uint8_t temp;
+        int temp;
 
         // Read in the key components...
         for (size_t i = 0; i < len; i++)
@@ -90,7 +90,7 @@
 }
 
 bool Command::isHexString(const std::string& str, size_t bytes) {
-    size_t numDelims = bytes - 1;
+    int numDelims = bytes - 1;
     size_t minSize = bytes * 2;
     size_t maxSize = minSize + numDelims;