I have the following data:
#define MQTT_HOST IPAddress(169,254,97,145) //MQTT BROKER IP ADDRESS
#define MQTT_PORT 1883
#define BROKER_USER “paulo”
#define BROKER_PASS “abc12345”
In terminal I have:
pi@raspberrypi:~ $ hostname -I
169.254.97.145 192.168.1.204
In terminal I use:
mosquitto_pub -u esp32 -P myesp32 -t testTopic -m “Hello world!”
mosquitto_sub -u paulo -P abc12345 -v -t testTopic
What is my mistake?
#define MQTT_HOST IPAddress(192,168,1,204) //MQTT BROKER IP ADDRESS
This must work with wifi: inet 192.168.1.204
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.204 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a432:26b2:c6b:585c prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:4b:7f:34 txqueuelen 1000 (Ethernet)
RX packets 117668 bytes 9471518 (9.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7659 bytes 3813901 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0