Todd Dale
/
BluetoothSlave
Basic Slave connection code. (Bluetooth)
main.cpp
- Committer:
- el15tcd
- Date:
- 2018-05-25
- Revision:
- 2:55173624f9a0
- Parent:
- 1:c573caf40864
File content as of revision 2:55173624f9a0:
#include "mbed.h" Serial rn42(p13,p14); //TX, RX Serial pc(USBTX, USBRX); char x; int main() { rn42.baud(460800); wait(0.5); rn42.putc('$'); rn42.putc('$'); rn42.putc('$'); //command mode entered wait(0.3); rn42.putc('W'); rn42.putc('\n'); //slave device 'woken' wait(0.3); while(1) { } }