mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 21:15:55 +08:00
Compare commits
2
Commits
f47dbcc94c
...
eef608b0d0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eef608b0d0 | ||
|
|
1eee3b0683 |
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
Version 1.1.0
|
||||
Version 1.2.0
|
||||
@@ -12,6 +12,8 @@ uint8_t idx = 0;
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
|
||||
WiFiManager wm;
|
||||
if (!wm.autoConnect("ESP8266-Setup")) {
|
||||
Serial.println("ERR;WIFI");
|
||||
@@ -41,11 +43,13 @@ void loop() {
|
||||
|
||||
/* ================= SERIAL PARSER ================= */
|
||||
void handleLine(char *line) {
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
if (strncmp(line, "UPLOAD:", 7) == 0) {
|
||||
parseUpload(line + 7);
|
||||
} else {
|
||||
Serial.println("ERR;CMD");
|
||||
}
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
}
|
||||
|
||||
/* ================= DATA PARSER ================= */
|
||||
|
||||
Reference in new issue
Block a user