From 1507f55fc199b38c7fa56f5675a758c1cb397598 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Mon, 26 Apr 2021 15:26:27 +0200 Subject: [PATCH] Fixed HA IP-Address and MQTT user/pwd --- src/main.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2b39f29..153e894 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,12 +15,13 @@ * - 2 * - 3 * - 5 - * - 6 - * - 7 - * - 8 - * - 9 - * - 14 (A0) - * - 15 (A1) + * - 6 POSTBOX_DOOR_PIN + * - 7 POSTBOX_FLAP_PIN + * - 8 LIGHT_REQUEST_BUTTON_PIN + * - 9 DOOR_BELL_BUTTON_PIN + * - 13 out: LED_PIN + * - 14 (A0) out: DOOR_BELL_BUZZER_PIN + * - 15 (A1) out: POSTBOX_LIGHT_PIN * - 16 (A2) * - 17 (A3) * - 18 (A4) @@ -40,11 +41,11 @@ void (*resetArduinoNow) (void) = 0; // declare reset fuction at address 0 // Update these with values suitable for your network. byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xEA }; -IPAddress ip(192, 168, 89, 205); -IPAddress mqttServerIP(192, 168, 89, 95); +//IPAddress ip(192, 168, 89, 205); +IPAddress mqttServerIP(192, 168, 89, 222); -const char *mqttUser = "default"; -const char *mqttPassword = "12345678"; +const char *mqttUser = "doorbell"; +const char *mqttPassword = "tkSEM35EnLvVi7etjd"; const char *lwtTopic = "doorBellGW/LWT"; const char *lwtMessage = "Offline";