Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <WiFi.h>
- #include <esp_mesh.h>
- #define MESH_ID "ESP32_MESH_NETWORK"
- void setup() {
- Serial.begin(115200);
- WiFi.mode(WIFI_AP_STA);
- mesh_init();
- mesh_set_router(MESH_ID, "your_ssid", "your_password");
- esp_mesh_start();
- Serial.println("Sub-node started");
- }
- void loop() {
- // Sub-node logic
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement