Enable to change Gateway name in platformio ini file

by setting the build_flag
  '-DGateway_Name="OpenMQTTGateway_ESP32"'

for example
This commit is contained in:
1technophile committed 2019-07-25 06:50:11 +02:00
1 parent d30adc2340
commit c1242f7c91
1 file changed
+3 -2
+3 -2
View File
@@ -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