int main(int argc, char* argv[]) { std::string workingDir = getexepath() + "/../DB"; workingDir = "/home/bele/git/arduino-mqtt-sn-gateway/cmake-build-debug/DB"; persistent.setRootPath((char *) workingDir.c_str()); setup(); while(true){ gateway.loop(); } }