ESP32_UART_MESH COMMUNICATION — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by usaamaamf4925.

Components

Sketch code

#define EMERGENCY_BTN 4

bool sent = false;

void setup() {
  pinMode(EMERGENCY_BTN, INPUT_PULLUP);
  Serial.begin(115200);

  Serial.println("NODE1 READY");
}

void loop() {

  if (!sent && digitalRead(EMERGENCY_BTN) == LOW) {

    sent = true;

    Serial.println("================================");
    Serial.println("EMERGENCY GENERATED");
    Serial.println("ROUTE: NODE1 -> NODE2 -> NODE4");
    Serial.println("================================");
  }
}

More projects by usaamaamf4925