how to set broker url in menuconfig for rtos mqtt example
Posted: Sun May 30, 2021 11:55 am
I've got mosquitto_sub running on a couple linux boxes on my network, and I'm compiling the example that comes with the ESP8266_RTOS_SDK examples in the mqtt section (ws & tcp). The 'Example Configuration' section of the menuconfig defaults to some cloud mqtt url but I want it to use the mosquitto broker running on one of my linux boxes. So I specify the broker url as 192.168.88.150 which works with mosquitto, but when I compile and flash the ESP8266 is says:
I also had to hard code in setting the port number because I couldn't find where to set it in the menuconfig.
I'm digging threw the code right now in components/mqtt/esp-mqtt/mqtt_client.c but I don't want to go mucking around with it by hard-coding it in. Do I need to specify a DNS name for the linux box?
Code: Select all
Error parse uri: = 192.168.88.150
Client asked to stop, but was not started
Client was not initialized
I also had to hard code in setting the port number because I couldn't find where to set it in the menuconfig.
I'm digging threw the code right now in components/mqtt/esp-mqtt/mqtt_client.c but I don't want to go mucking around with it by hard-coding it in. Do I need to specify a DNS name for the linux box?