ESP32 使用WIFI UDP协议通信 ESP32主: 读取光敏传感器数值, 并通过UDP发送 ESP32从: 读取主机发送的数值, 并显示在OLED显示屏上 实际效果 左边为ESP32, 连接OLED, 为STA模式从机 右边为ESP32, 连接光敏传感器, 为AP+STA主机, 可连接外网和连接从机 ESP32 主 - AP/STA 发送数据 #define STASSID "209" #define STAPSK "xinxi209" #include <WiFi.h> #include <WiFiUDP.h> const char AP_NameChar[] = "WIFI-SSID"; const char WiFiAPPSK[] = "WIFI-PSK"; IPAddress ESP8266ip1(192,168,4,2); IPAddress ESP8266ip2(192,168,4,3); IPAddress ESP8266ip(192,168,4,255); unsigned int localPort =8080; unsigned int...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with String
Contact String, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack