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: ARCH_GPRS_V2_HW Blinker GPRSInterface HTTPClient_GPRS RTC_WorkingLibrary SDFileSystem USBDevice mbed
Fork of finalv2 by
Revision 4:f7f454e6c865, committed 2015-05-06
- Comitter:
- mbotkinl
- Date:
- Wed May 06 13:12:17 2015 +0000
- Parent:
- 3:8d414873535d
- Child:
- 5:96d91bbd6c14
- Commit message:
- data writes to appropriate csv
Changed in this revision
| finalCodev3.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/finalCodev3.cpp Wed May 06 13:06:59 2015 +0000
+++ b/finalCodev3.cpp Wed May 06 13:12:17 2015 +0000
@@ -249,7 +249,9 @@
sprintf(timestamp,"20%.2d-%.2d-%.2d %.2d:%.2d:%.2d", year, month, date, hours, minute, sec); //create time stamp
mkdir("/sd", 0777);
- FILE *fp = fopen("/sd/node1.csv","a");
+ //FILE *fp = fopen("/sd/node1.csv","a");
+ FILE *fp = fopen(filename,"a");
+
if (fp == NULL) {
blueLED.blink(10); //no sd Card blink Blue 10 times
} else {
@@ -267,7 +269,9 @@
sprintf(timestamp,"20%.2d-%.2d-%.2d %.2d:%.2d:%.2d", year, month, date, hours, minute, sec); //create timestamp
mkdir("/sd", 0777);
- FILE *fp = fopen("/sd/node1.csv","a");
+ //FILE *fp = fopen("/sd/node1.csv","a");
+ FILE *fp = fopen(filename,"a");
+
if (fp == NULL) {
blueLED.blink(10); //no sd Card blink blue 10 times
} else {
@@ -285,7 +289,8 @@
sprintf(timestamp,"20%.2d-%.2d-%.2d %.2d:%.2d:%.2d", year, month, date, hours, minute, sec); //create timestamp
mkdir("/sd", 0777);
- FILE *fp = fopen("/sd/node1.csv","a");
+ //FILE *fp = fopen("/sd/node1.csv","a");
+ FILE *fp = fopen(filename,"a");
if (fp == NULL) {
blueLED.blink(10); //no sd card blink blue 10 times
} else {
