Terminal program providing access to radio AT command interface via the external serial port.
Dependencies: mbed-src
Diff: main.cpp
- Revision:
- 0:46dc3fdbc97e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 12 13:40:12 2015 +0000 @@ -0,0 +1,18 @@ +#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()); + } +} \ No newline at end of file