Add a macro to use the MAC address as the gateway name. (#1013)
Adds the macro USE_MAC_AS_GATEWAY_NAME, when defined the gateway name will default to OMG_XXXXXXXXXXXX, where the X's are the mac address characters. This can still be changed in WiFiManager.
This commit is contained in:
1 parent
83b8d88c0f
commit
e92e468ca6
2 files changed
+15
-1
No files matched your search
@@ -49,6 +49,10 @@
|
||||
* to the access point with your password (SSID: WifiManager_ssid, password: WifiManager_password)
|
||||
*/
|
||||
/*-------------DEFINE GATEWAY NAME BELOW IT CAN ALSO BE DEFINED IN platformio.ini----------------*/
|
||||
|
||||
// Uncomment to use the mac address in the format of 112233445566 as the gateway name
|
||||
// Any definition of Gateway_Name will be ignored. The Gateway_Short_name _ MAC will be used as the access point name.
|
||||
//#define USE_MAC_AS_GATEWAY_NAME
|
||||
#ifndef Gateway_Name
|
||||
# define Gateway_Name "OpenMQTTGateway"
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user