send and receive data with bluetooth module hc05
Dependencies: atterm hc_05 mbed
main.cpp
- Committer:
- rainerraul
- Date:
- 2018-08-26
- Revision:
- 2:ed026571206c
- Parent:
- 1:3df25c804a0e
- Child:
- 3:1e59972e9244
File content as of revision 2:ed026571206c:
#include "mbed.h" #include "at.h" #include "hc05.h" ///Serial term(USBTX, USBRX); bt_modul_hc05 hc05; DigitalOut led1(LED1); char *receive, *ok; int main() { pc.device_init2(38400, OFF); hc05.initUART(UART6, 38400, OFF); wait(1.0); hc05.init_master_fixed("0000", "nucleo", "2015,11,27524"); while(1) { wait(0.5); hc05.data_send("Hallo"); } }