Category : arduino-c++

I have declared a class as : class Actuator { public : enum class Action { /*my enum member*/ }; private: /* my data member*/ public : Actuator(uint8_t number); Actuator(uint8_t number, String& relay_config_string, String& led_config_string); Actuator(uint8_t number, const char* relay_config_string, const char* led_config_string); void set_relay_config (String& relay_config_string); void set_relay_config (const char* relay_config_string); String get_relay_config (void); ..

Read more

I am working on project in which i am going to use SPIFFS to write the arguments got from the server and display the webpage. void PostClient(AsyncWebServerRequest *request) { File file = SPIFFS.open("/logs.txt", "w"); int paramsNr = request->params(); for(int i=0;i<paramsNr;i++){ AsyncWebParameter* p = request->getParam(i); file.print(" Email: " + p->value()); file.print(" Password: " + p->value()); } ..

Read more