made progress on android-example connecting to arduino-example

This commit is contained in:
strawmanbobi
2025-12-26 10:02:17 +08:00
parent 2144615530
commit 91bfad1049
2 changed files with 12 additions and 3 deletions

View File

@@ -27,8 +27,8 @@
#include <cstdint>
// Wi-Fi Configs
#define SECRET_SSID "maomao"
#define SECRET_PASS "20121207"
#define SECRET_SSID "Maomao的小房子"
#define SECRET_PASS "Maomao121207"
// LED Matrix Definitions
constexpr uint32_t chip[] = {

View File

@@ -36,6 +36,15 @@
constexpr char ssid[] = SECRET_SSID;
constexpr char pass[] = SECRET_PASS;
// commands and events
auto *aHello = "a_hello";
auto *eHello = "e_hello";
auto *aBin = "a_bin";
auto *eBin = "e_bin";
auto *aControl = "a_control";
auto *eControl = "e_control";
int status = WL_IDLE_STATUS;
unsigned long lastStatusCheck = 0;
boolean wifiStatusPrinted = false;
@@ -133,7 +142,7 @@ void loop() {
if (false == clientConnected) {
client.flush();
Serial.println("We have a new client");
client.println("Hello, client");
client.println("e_hello");
clientConnected = true;
}