divinofire / databaseonsd Goto Github PK
View Code? Open in Web Editor NEWAn arduino platform library that makes SD card reads and writes a breeze
License: Other
An arduino platform library that makes SD card reads and writes a breeze
License: Other
MyTable testTable("test.csv"); //this will create or open the table named test.csv in the root of the SD card, As this comment says when the file is not exist in the sd card it should create a new file, but it shows file not exist.....
Hello! Looks like this library can't compile for ESP8266 like it used to before
Error log:
Compiling library "DatabaseOnSD"
/home/alpha/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 @/tmp/arduino_build_43497/core/build.opt -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/include -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/lwip2/include -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/sdk/libc/xtensa-lx106-elf/include -I/tmp/arduino_build_43497/core -c @/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/tools/warnings/extra-g++ -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10819 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_GENERIC"" "-DARDUINO_BOARD_ID="generic"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266 -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/variants/generic -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/SPI -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/SD/src -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/SDFS/src -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/ESP8266SdFat/src -I/home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/libraries/ESP8266WiFi/src -I/home/alpha/Arduino/libraries/UniversalTelegramBot/src -I/home/alpha/Arduino/libraries/ArduinoJson/src -I/home/alpha/Arduino/libraries/DatabaseOnSD/src /home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp -o /tmp/arduino_build_43497/libraries/DatabaseOnSD/DatabaseOnSD.cpp.o
In file included from /home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:31:
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.h:69: warning: "EOF" redefined
69 | #define EOF '\0' // end of file character
|
In file included from /home/alpha/.arduino15/packages/esp8266/hardware/esp8266/3.1.1/cores/esp8266/Arduino.h:32,
from /home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.h:38,
from /home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:31:
/home/alpha/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/stdio.h:118: note: this is the location of the previous definition
118 | #define EOF (-1)
|
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In member function 'bool MyTable::deleteRow(unsigned int)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:400:13: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
400 | if (rowN>=Nrows) {Serial.println(F("early fail to delete")); return false;} // validate row number
| ~~~~^~~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:408:12: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
408 | if (i==rowN) continue;
| ~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In member function 'bool MyTable::insertRow(unsigned int, String)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:425:14: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
425 | if (rowN < 0) return false;
| ~~~~~^~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:429:13: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
429 | if (rowN>=Nrows) {appendRow(row); return true;}
| ~~~~^~~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:437:12: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
437 | if (i==rowN) {tempfile.appendRow(row);}
| ~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String updateString(int, String, String)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:513:22: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
513 | for (int i = 0; i<string.length(); i++){
| ~^~~~~~~~~~~~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:518:28: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
518 | if (data.length()==j) {
| ~~~~~~~~~~~~~^~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String fitString(String, int)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:546:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
546 | if (s.length()==size) return s;
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:547:25: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
547 | while (s.length()!= size){
| ~~~~~~~~~~^~~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:548:26: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
548 | if (s.length( )> size) s.remove(s.length( )-1);
| ~~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:549:30: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
549 | else if (s.length()>size) s += " ";
| ~~~~~~~~~~^~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String fitStringN(String, int)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:572:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
572 | if (s.length()==size) return s;
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:573:25: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
573 | while (s.length()!=size){
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:574:25: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
574 | if (s.length()> size) s.remove(s.length()-1);
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:575:30: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
575 | else if (s.length()<size) s += STRING_PAD;
| ~~~~~~~~~~^~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String fitStringD(String, int)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:589:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
589 | if (s.length()==size) return s;
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:590:25: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
590 | while (s.length()!=size){
| ~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:591:26: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
591 | if (s.length( )> size) s.remove(s.length( )-1);
| ~~~~~~~~~~~^~~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:592:30: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
592 | else if (s.length()<size) s += STRING_PAD;
| ~~~~~~~~~~^~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String readAttribute(int, String)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:602:9: warning: unused variable 'rowN' [-Wunused-variable]
602 | int rowN = 0;
| ^~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In member function 'String MyTable::selectRow(int)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:96:8: error: control reaches end of non-void function [-Werror=return-type]
96 | File table;
| ^~~~~
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp: In function 'String updateString(int, String, String)':
/home/alpha/Arduino/libraries/DatabaseOnSD/src/DatabaseOnSD.cpp:524:5: error: control reaches end of non-void function [-Werror=return-type]
524 | }
| ^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.