Hepta communication

Dependencies:   mbed HeptaXbee

Fork of Lab7-01_template by HEPTA-Sat Training 2017~2018

Revision:
16:b8cbd5235640
Parent:
15:85985edfb201
diff -r 85985edfb201 -r b8cbd5235640 main.cpp
--- a/main.cpp	Fri Sep 08 22:41:25 2017 +0000
+++ b/main.cpp	Wed Aug 08 11:09:38 2018 +0000
@@ -12,7 +12,7 @@
     int rcmd=0,cmdflag=0;
     for(int i = 0; i < 10; i++) {
         xbee.printf("num = %d\r\n",i);
-        xbee.xbee_recieve(&rcmd,&cmdflag);
+        xbee.xbee_receive(&rcmd,&cmdflag);
         pc.printf("rcmd=%d, cmdflag=%d\r\n",rcmd, cmdflag);
         if (cmdflag == 1) {
             if (rcmd == 'a') {