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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 6:cf43f62b1e75
- Parent:
- 5:9b5899b06e2e
diff -r 9b5899b06e2e -r cf43f62b1e75 main.cpp
--- a/main.cpp Fri Nov 29 19:08:28 2019 +0000
+++ b/main.cpp Mon Dec 02 07:39:27 2019 +0000
@@ -98,6 +98,22 @@
fclose(fp);
}
}
+ for(int i=0;i<2;i++) {
+
+ int received_data = xbee.getc();
+
+ if (received_data == 82 || received_data == 114){ //Rまたはr
+ xbee.printf("_________________________________________________________________________________________________________________________________\r\n");
+ if((fp=fopen("/local/d.txt","r"))!=NULL)
+ {
+ while ((c=fgetc(fp))!=EOF){
+ xbee.printf("%c",c); //再送
+
+ }
+ fclose(fp);
+ }
+ }
+ }
}else{//焦電反応なしの場合
printf("not found!\r\n");