jwhiddon / EDB

A re-implementation of the Arduino database library to allow more than 256 records
GNU Lesser General Public License v2.1
89 stars 43 forks source link

db.open() function returns Zero #30

Closed himanshu-hearthacker closed 7 years ago

himanshu-hearthacker commented 7 years ago

I want to create table only once in life time. I am using this function to detect if table exists or not. But this function always returns me 0(Zero) every time even if table exists or not. get this updated open() function from here.. https://github.com/firebull/arduino-edb/blob/master/EDB.cpp

EDB_Status result = db.open(0);
if (result == EDB_ERROR) {
        Serial.println("Creating DB " + String(0));
        db.create(0, TABLE_SIZE, sizeof(LogEvent));

} else{ Serial.println(result); }

rnsi commented 2 years ago

[himanshu-hearthacker]- I know it's been a while, but did you ever resolve this? What was your workaround?