Skip to content

Commit

Permalink
fixed iot service
Browse files Browse the repository at this point in the history
  • Loading branch information
potier97 committed Sep 20, 2020
1 parent 67a25ab commit 951909d
Show file tree
Hide file tree
Showing 24 changed files with 1,076 additions and 309 deletions.
213 changes: 213 additions & 0 deletions copiasegguridad.csv

Large diffs are not rendered by default.

Binary file modified rf24/telemetryNetwork
Binary file not shown.
4 changes: 2 additions & 2 deletions rf24/telemetryNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void writeCSV(){
// file pointer
fstream fout;
// opens an existing csv file or creates a new file.
fout.open("/home/pi/iot/rf24/weatherData.csv", ios::out | ios::app);
fout.open("/home/pi/iot/store/weatherData.csv", ios::out | ios::app);

//Get Date
string now = getDate();
Expand Down Expand Up @@ -168,7 +168,7 @@ void insertDB(){
sqlite3_stmt *stmt;
//Validation Conecction
int exit = 0;
exit = sqlite3_open("/home/pi/iot/rf24/sensordata.db", &DB);
exit = sqlite3_open("/home/pi/iot/store/sensordata.db", &DB);

if (exit) {
printf("No Abrio");
Expand Down
53 changes: 0 additions & 53 deletions rf24/weatherData.csv

This file was deleted.

Loading

0 comments on commit 951909d

Please sign in to comment.