Sets Dragonfly into an AT command path via a USB to Serial path. The debug path is selected by default. This also has the commands to send a simple text and set the APN.

Dependencies:   mbed-src

Fork of YYY_Dragonfly_USBTerminal by Paul Jaeger

Revision:
1:af87be58749e
Parent:
0:46dc3fdbc97e
Child:
2:69fe2640298a
--- a/main.cpp	Thu Feb 12 13:40:12 2015 +0000
+++ b/main.cpp	Tue Oct 20 00:27:25 2015 +0000
@@ -1,14 +1,16 @@
 #include "mbed.h"
 
-int main() {
+int main()
+{
     // external serial port
-    Serial ext(PA_2, PA_3);
+    Serial ext(USBTX,USBRX );   //   Serial ext(dbgTX/*PB_6*/,dbgRX/* PB_7*/ );   // Serial ext(PA_2, PA_3);
+
     // internal serial port to radio
     Serial radio(RADIO_TX, RADIO_RX);
-    
-    ext.baud(230400);
+
+    ext.baud(115200);
     radio.baud(115200);
-    
+
     while (true) {
         if (ext.readable())
             radio.putc(ext.getc());