implemented #318 static IP support

This commit is contained in:
lumapu 2022-11-06 01:07:12 +01:00
parent ea991a7723
commit ca8142e781
7 changed files with 96 additions and 2 deletions

View file

@ -61,6 +61,15 @@ class web {
void onSerial(AsyncWebServerRequest *request);
void onSystem(AsyncWebServerRequest *request);
void ip2Arr(uint8_t ip[], char *ipStr) {
char *p = strtok(ipStr, ".");
uint8_t i = 0;
while(NULL != p) {
ip[i++] = atoi(p);
p = strtok(NULL, ".");
}
}
AsyncWebServer *mWeb;
AsyncEventSource *mEvts;
bool mProtected;