Skip to content

Commit

Permalink
[sketch][sdp_switchbot_lock] add print
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Nov 29, 2023
1 parent 92883e1 commit 6eb19e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sketchbooks/sdp_switchbot_lock/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6eb19e9

Please sign in to comment.