Browse Source

new ip -> 2.2.2.2 to get rid of conflicts with 192.168.1.1

master
Никита 6 years ago
parent
commit
dd76444dc7
  1. 5
      src/main.cpp

5
src/main.cpp

@ -167,10 +167,9 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t length
}
void setup(void)
{
IPAddress apIP(192, 168, 1, 1);
IPAddress apIP(2, 2, 2, 2);
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.println();
@ -184,7 +183,7 @@ void setup(void)
server.on("/accelerometer", handleAccelerometer);
server.on("/", []() {
server.send(200, "text/html", "<a style=\"font-size:10em;2\"href=\"http://192.168.1.1/accelerometer\">Main Page</a>");
server.send(200, "text/html", "<a style=\"font-size:10em;2\"href=\"http://2.2.2.2/accelerometer\">Main Page</a>");
});
server.onNotFound(handleNotFound);

Loading…
Cancel
Save