Custom Gateway_Name not taking affect


I’m using an ESP32 with pio and v0.9.2 of OMG.

I’m changing line 76 in User_config.h but it’s not taking affect after uploading. All my Mqtt topics come through as home/OpenMQTTGateway_ESP32_BLE/… I’m trying to use multiple OMGs so need different names. I’ve wiped the ESP and tried a fresh one without success.

Am I changing the wrong field / doing something wrong?




It is because you have an overide value of the gateway name in platformio.ini for this board.

Thank you. That did the trick.

To explain the concept, instead of defining into user_config.h the goal is to be able to set all your production environments into the platformio.ini or an equivalent. This way several boards can be compiled and uploaded at the same time with different parameters and configurations.