mirror of
				https://github.com/luc-github/ESP3D.git
				synced 2025-10-31 11:56:48 -07:00 
			
		
		
		
	Add basic authentification and OTA update
only web update is supported
This commit is contained in:
		| @@ -110,6 +110,11 @@ void setup() { | ||||
|   //start interfaces | ||||
|   web_interface = new WEBINTERFACE_CLASS(wifi_config.iweb_port); | ||||
|   data_server = new WiFiServer (wifi_config.idata_port); | ||||
|   //here the list of headers to be recorded | ||||
|   const char * headerkeys[] = {"Cookie"} ; | ||||
|   size_t headerkeyssize = sizeof(headerkeys)/sizeof(char*); | ||||
|   //ask server to track these headers | ||||
|   web_interface->WebServer.collectHeaders(headerkeys, headerkeyssize ); | ||||
|   web_interface->WebServer.begin(); | ||||
|   data_server->begin(); | ||||
|   data_server->setNoDelay(true); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user