Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "HEPTA_COM.h" 00003 00004 RawSerial pc(USBTX,USBRX,9600); 00005 HEPTA_COM com(p9,p10); 00006 00007 int main() 00008 { 00009 pc.printf("Xbee Uplink Ok Mode\r\n"); 00010 int rcmd=0,cmdflag=0; 00011 for(int i = 0; i < 10; i++) { 00012 com.printf("num = %d\r\n",i); 00013 com.xbee_receive(&rcmd,&cmdflag); 00014 pc.printf("rcmd=%d, cmdflag=%d\r\n",rcmd, cmdflag); 00015 if (cmdflag == 1) { 00016 if (rcmd == 'a') { 00017 pc.printf("Command Get %d\r\n",rcmd); 00018 com.printf("HEPTA Uplink OK\r\n"); 00019 } 00020 com.initialize(); 00021 } 00022 wait(1.0); 00023 } 00024 }
Generated on Mon Nov 14 2022 09:30:24 by
1.7.2