Elementic logo

Sonoff

Sonoff Mini R2

Device information

Controller
ESP8266
Category
Smart devices
Pins
4

Controller details

ESP8266

Espressif · ESP8266 · Xtensa single-core

160 KB RAM · 17 GPIO

Programming and bootloader instructions

Instructions have not yet been added for this Device.

USB identification and standard firmware

USB matches suggest possible boards; they never identify the exact device with certainty. A missing bootloader response does not prove that no bootloader is installed.

  • No USB matching rules configured. This is not proof of incompatibility.
  • No published programming target / standard firmware available yet.

Standard main.cpp

Device specific
// Elementic starter sketch
// Device: Sonoff Mini R2
// Device Excel ID: 27
// Controller: ESP8266

void setup()
{
    Serial.begin(115200);
    delay(500);

    Serial.println("Elementic device booting...");
    Serial.println("Device: Sonoff Mini R2");
    Serial.println("Excel ID: 27");
}

void loop()
{
    // 1. Configure your Elementic pins here.
    // 2. Add your connectivity setup.
    // 3. Publish or react to device state changes.

    delay(1000);
}

Pin summary

GPIO Name Flags
0 GPIO0 (Button) Binary in, Interrupt
4 GPIO4 (Switch input) Binary in, Interrupt
12 GPIO12 (Relay) Binary out
13 GPIO13 (LED) Digital out, Binary out