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:
- 24:d974a3d160f8
- Parent:
- 23:a04e970f1326
- Child:
- 25:3a9580e58a5e
--- a/main.cpp Sat Dec 14 21:03:00 2019 +0000
+++ b/main.cpp Sat Dec 14 22:42:49 2019 +0000
@@ -227,17 +227,22 @@
while (camera.isProcessing()) {
camera.processPicture();
- printf("take pictuer!");
+ printf("take picture!");
+
+ /*xbee.printf("xbee connected!!\r\n");
+ bs = new base64();
+ bs->Encode(filename,"/local/data.txt");*/
+
+ printf("time = %f\n", timer.read());
+
xbee.printf("xbee connected!!\r\n");
bs = new base64();
bs->Encode(filename,"/local/data.txt");
-
- printf("time = %f\n", timer.read());
- if((fp=fopen("/local/d.txt","r"))!=NULL){
+ if((fp=fopen("/local/data.txt","r"))!=NULL){
pc.printf("ok\r\n");
while((c=fgetc(fp))!=EOF){
xbee.printf("%c",c);
@@ -258,7 +263,7 @@
if (received_data == 82 || received_data == 114){ //Rまたはr
xbee.printf("_________________________________________________________________________________________________________________________________\r\n");
- if((fp=fopen("/local/d.txt","r"))!=NULL) {
+ if((fp=fopen("/local/data.txt","r"))!=NULL) {
while ((c=fgetc(fp))!=EOF){
xbee.printf("%c",c); //再送