diff --git a/hardware/README.md b/hardware/README.md index a2e20201..b37dcb8e 100644 --- a/hardware/README.md +++ b/hardware/README.md @@ -16,13 +16,18 @@ You can also use a ESP based development board and combine this with a M-Bus mod ### ESP8266 based boards -[Wemos D1 mini](https://docs.wemos.cc/en/latest/d1/d1_mini.html) - M-Bus connected to GPIO 5 +[Wemos D1 mini](https://docs.wemos.cc/en/latest/d1/d1_mini.html) +- M-Bus connected to GPIO5 (D1) +- Jump GPIO4 (D2) to GND to force AP mode during boot ### ESP32 based boards -[Wemos D32](https://docs.wemos.cc/en/latest/d32/d32.html) - M-Bus connected to GPIO 21 +[Wemos D32](https://docs.wemos.cc/en/latest/d32/d32.html) +- M-Bus connected to GPIO21 +- Jump GPIO4 to GND to force AP mode during boot -[Adafruit HUZZAH32](https://www.adafruit.com/product/3405) - M-Bus connected to RX +[Adafruit HUZZAH32](https://www.adafruit.com/product/3405) +- M-Bus connected to RX Combine one of above board with an M-Bus module. Connect 3.3v and GND together between the boards and connect the TX pin from the M-Bus board to the dedicated M-Bus pin on the ESP board. diff --git a/src/AmsToMqttBridge.h b/src/AmsToMqttBridge.h index 144d7c3c..0b984c9f 100644 --- a/src/AmsToMqttBridge.h +++ b/src/AmsToMqttBridge.h @@ -23,7 +23,7 @@ HardwareSerial *hanSerial = &Serial; #elif defined(ARDUINO_LOLIN_D32) #define LED_PIN 5 #define LED_ACTIVE_HIGH 0 -#define AP_BUTTON_PIN INVALID_BUTTON_PIN +#define AP_BUTTON_PIN 4 #define SOFTWARE_SERIAL 1 #include @@ -31,9 +31,9 @@ SoftwareSerial *hanSerial = new SoftwareSerial(GPIO_NUM_21); // Build settings for Wemos D1 mini #elif defined(ARDUINO_ESP8266_WEMOS_D1MINI) -#define LED_PIN LED_BUILTIN +#define LED_PIN D4 #define LED_ACTIVE_HIGH 0 -#define AP_BUTTON_PIN INVALID_BUTTON_PIN +#define AP_BUTTON_PIN D2 #define SOFTWARE_SERIAL 1 #include