Stap 3: Uitgang voor seriële uit de SolarPowerESP8266
---------------- SolarPower ESP8266 ---------------- Connec....... Local WiFi connected, IP address: 192.168.1.129 Server started Free heap on ESP8266:33080 --------SAP Data------- LIPO_Battery Bus Voltage: 4.06 V LIPO_Battery Load Voltage: 4.07 V LIPO_Battery Current: 113.20 mA Solar Cell Bus Voltage: 3.63 V Solar Cell Load Voltage: 3.63 V Solar Cell Current: 0.00 mA Output Bus Bus Voltage: 4.98 V Output Bus Load Voltage: 4.99 V Output Bus Current: 92.00 mA -------- Free heap on ESP8266:33080 --------SAP Data------- LIPO_Battery Bus Voltage: 4.06 V LIPO_Battery Load Voltage: 4.07 V LIPO_Battery Current: 114.80 mA Solar Cell Bus Voltage: 3.62 V Solar Cell Load Voltage: 3.62 V Solar Cell Current: 0.00 mA Output Bus Bus Voltage: 4.98 V Output Bus Load Voltage: 4.99 V Output Bus Current: 88.80 mA --------
Wanneer de ESP8266 is opgevraagd door een webbrowser (of een computer), dit is wat wordt afgedrukt op de seriële poort:
-------- Buffer Count=9 Request received GET / RestDataString HTTP/ Sending command Command: s State: x State of buffer at the start: Added to buffer: RestDataString Added to buffer: 32696 | 32523,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,104.00 | 33538,4.05,4.06,132.40,3.62,3.62,0.00,4.98,4.99,102.00 | 34554,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,102.40 | 35570,4.05,4.06,131.60,3.62,3.62,0.00,4.98,4.99,102.40 | 36586,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,102.40 | 37602,4.05,4.06,131.60,3.62,3.62,0.00,4.98,4.99,110.00 | 38618,4.05,4.06,133.20,3.62,3.62,0.00,4.98,4.99,102.00 | 39634,4.05,4.06,132.00,3.62,3.62,0.00,4.98,4.99,102.00 | 40650,4.05,4.06,130.80,3.62,3.62,0.00,4.98,4.99,102.00 Added to buffer: 1 Added to buffer: SolarPowerESP8266 State of buffer at the end: HTTP/1.1 200 OK Access-Control-Allow-Origin: * Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS Content-Type: application/json Connection: close
{"RestDataString": "32696 | 32523,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,104.00 | 33538,4.05,4.06,132.40,3.62,3.62,0.00,4.98,4.99,102.00 | 34554,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,102.40 | 35570,4.05,4.06,131.60,3.62,3.62,0.00,4.98,4.99,102.40 | 36586,4.05,4.06,131.20,3.62,3.62,0.00,4.98,4.99,102.40 | 37602,4.05,4.06,131.60,3.62,3.62,0.00,4.98,4.99,110.00 | 38618,4.05,4.06,133.20,3.62,3.62,0.00,4.98,4.99,102.00 | 39634,4.05,4.06,132.00,3.62,3.62,0.00,4.98,4.99,102.00 | 40650,4.05,4.06,130.80,3.62,3.62,0.00,4.98,4.99,102.00", "id": "1", "name": "SolarPowerESP8266", "connected": true}