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
+2
-1
+2
-1
@@ -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_server[40] = "192.168.1.17";
|
||||||
char mqtt_port[6] = "1883";
|
char mqtt_port[6] = "1883";
|
||||||
|
|
||||||
|
#ifndef Gateway_Name
|
||||||
#define Gateway_Name "OpenMQTTGateway"
|
#define Gateway_Name "OpenMQTTGateway"
|
||||||
|
#endif
|
||||||
//uncomment the line below to integrate msg value into the subject when receiving
|
//uncomment the line below to integrate msg value into the subject when receiving
|
||||||
//#define valueAsASubject true
|
//#define valueAsASubject true
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user