From c1242f7c91348428a9343a9bc5487d60d40b5e5b Mon Sep 17 00:00:00 2001 From: 1technophile <1technophile@users.noreply.github.com> Date: Thu, 25 Jul 2019 06:50:11 +0200 Subject: [PATCH] Enable to change Gateway name in platformio ini file by setting the build_flag '-DGateway_Name="OpenMQTTGateway_ESP32"' for example --- main/User_config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/User_config.h b/main/User_config.h index 6e48901..9c3cd1d 100644 --- a/main/User_config.h +++ b/main/User_config.h @@ -71,8 +71,9 @@ char mqtt_pass[30] = "your_password"; // not compulsory only if your broker need char mqtt_server[40] = "192.168.1.17"; char mqtt_port[6] = "1883"; -#define Gateway_Name "OpenMQTTGateway" - +#ifndef Gateway_Name + #define Gateway_Name "OpenMQTTGateway" +#endif //uncomment the line below to integrate msg value into the subject when receiving //#define valueAsASubject true