small changes
This commit is contained in:
@@ -19,5 +19,5 @@ lib_deps =
|
||||
knolleary/PubSubClient@^2.8
|
||||
bblanchon/ArduinoJson@^6.17.3
|
||||
build_flags = -D USE_ESPRESSIF
|
||||
upload_port = /dev/ttyUSB0
|
||||
;upload_port = /dev/ttyUSB0
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ void loop()
|
||||
uint8_t device_id = rh_buf[0] &0x0f;
|
||||
Serial.print("Device ID: ");
|
||||
Serial.println(device_id);
|
||||
switch (rh_buf[0] & 0xf0)
|
||||
switch (header)
|
||||
{
|
||||
case MSG_START:
|
||||
// start message
|
||||
|
||||
Reference in New Issue
Block a user