|
@ -10,7 +10,7 @@ |
|
|
#include <ArduinoJson.h> |
|
|
#include <ArduinoJson.h> |
|
|
#include "CpuLoad.h" |
|
|
#include "CpuLoad.h" |
|
|
|
|
|
|
|
|
const char *ssid = "NodeMCU"; |
|
|
const char *ssid = "LabWork_1"; |
|
|
|
|
|
|
|
|
ESP8266WebServer server(80); |
|
|
ESP8266WebServer server(80); |
|
|
Sensor accelerometer = Sensor(); |
|
|
Sensor accelerometer = Sensor(); |
|
@ -120,8 +120,8 @@ void setup(void) |
|
|
Serial.println(); |
|
|
Serial.println(); |
|
|
|
|
|
|
|
|
pinMode(A0, INPUT); |
|
|
pinMode(A0, INPUT); |
|
|
|
|
|
WiFi.setAutoConnect(false); |
|
|
WiFi.softAP(ssid); |
|
|
WiFi.softAP(ssid); |
|
|
|
|
|
|
|
|
IPAddress myIP = WiFi.softAPIP(); |
|
|
IPAddress myIP = WiFi.softAPIP(); |
|
|
Serial.print("AP IP address: "); |
|
|
Serial.print("AP IP address: "); |
|
|
Serial.println(myIP); |
|
|
Serial.println(myIP); |
|
|