This program send an AT command to the HC05 module and shows the response into a terminal.

Dependencies:   mbed-src MODSERIAL

Notebook page HERE

Files at this revision

API Documentation at this revision

Comitter:
edodm85
Date:
Tue Aug 12 18:48:24 2014 +0000
Parent:
6:2a90ddc8282b
Commit message:
Changed baud rate and fixed interrupt for LPC4330

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2a90ddc8282b -r 804c6a1f49ce main.cpp
--- a/main.cpp	Tue Aug 12 16:19:19 2014 +0000
+++ b/main.cpp	Tue Aug 12 18:48:24 2014 +0000
@@ -59,10 +59,10 @@
 int main()
 {
    blue.baud(38400);
-   pc.baud(9600);
+   pc.baud(115200);
    
-   blue.attach(&rxBlueCallback, MODSERIAL::RxIrq);
-   pc.attach(&rxPcCallback, MODSERIAL::RxIrq);
+   blue.attach(&rxBlueCallback);
+   pc.attach(&rxPcCallback);
     
    pc.printf("AT Mode Start\r\n"); 
    int i = 0;