Minimal project to send AT-commands from the USB serialport to the BG96.
Fork of Nucleo_NbIotBG96_A2_cloud_IBM by
main.cpp
- Committer:
- albertskog
- Date:
- 2018-09-21
- Revision:
- 3:74c56cab5786
- Parent:
- 2:b72797c38464
File content as of revision 3:74c56cab5786:
#include "mbed.h" Serial pc(SERIAL_TX, SERIAL_RX); Serial bg96(D8, D2); DigitalOut resetPin(D7, 0); DigitalOut vbatEnPin(D11, 1); DigitalOut powerKeyPin(D10, 1); int main() { pc.baud(115200); bg96.baud(115200); while(1){ while(pc.readable()){ bg96.putc(pc.getc()); } while(bg96.readable()){ pc.putc(bg96.getc()); } } }