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.
Fork of YYY_Dragonfly_USBTerminal by
main.cpp
- Committer:
- mfiore
- Date:
- 2015-02-12
- Revision:
- 0:46dc3fdbc97e
- Child:
- 1:af87be58749e
File content as of revision 0:46dc3fdbc97e:
#include "mbed.h" int main() { // external serial port Serial ext(PA_2, PA_3); // internal serial port to radio Serial radio(RADIO_TX, RADIO_RX); ext.baud(230400); radio.baud(115200); while (true) { if (ext.readable()) radio.putc(ext.getc()); if (radio.readable()) ext.putc(radio.getc()); } }