ESP8266 MQTT Client Node ID



  • Hi !
    My goal is to make a sensor node on a wemos D1 mini on ESP8266 with MQTT directly on WIFI.
    I can push and receive message from the MQTT broker but when i send something (like a relay status) the node id of my sensor is 0 and i can't change it even with #define MY_NODE_ID 5.
    I use GatewayESP8266MQTTClient sketch and i comment //#define MY_RADIO_NRF24

    So how can i force it ? Thanks.


  • Mod

    @tchoblond59 a gateway always has node ID 0. It can use sensor IDs from 0 to 254 though.


 

458
Online

7.9k
Users

8.7k
Topics

93.6k
Posts