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:
1 parent
d30adc2340
commit
c1242f7c91
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user