From 6eb19e9b24610fd65450905ccacadbb04fb22f27 Mon Sep 17 00:00:00 2001 From: Koki Shinjo Date: Wed, 29 Nov 2023 13:52:31 +0900 Subject: [PATCH] [sketch][sdp_switchbot_lock] add print --- sketchbooks/sdp_switchbot_lock/src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sketchbooks/sdp_switchbot_lock/src/main.cpp b/sketchbooks/sdp_switchbot_lock/src/main.cpp index 845aa23a..cc65fbbb 100644 --- a/sketchbooks/sdp_switchbot_lock/src/main.cpp +++ b/sketchbooks/sdp_switchbot_lock/src/main.cpp @@ -219,6 +219,14 @@ void setup() "{\"command\":\"get_device_config\"}\n", 5000); Serial.printf("Response for get_device_status: %s\n", ret.c_str()); + + // LCD print + M5.lcd.println("=== Device Configuration ==="); + M5.lcd.printf("device_name: %s\n", device_name.c_str()); + M5.lcd.printf("wifi_ssid: %s\n", wifi_ssid.c_str()); + M5.lcd.printf("switchbot_device_id: %s\n", switchbot_device_id.c_str()); + M5.lcd.printf("uwb_id: %d\n", uwb_id); + M5.lcd.println("============================"); } void loop()