Closed Telo87 closed 1 year ago
I would assume yes, but documentation of the underlying API PubSubClient::setServer is a little unspecific in this regard, just saying "the address of the server".
This is an overloaded function call so it would be possible to switch to the IP specific function variant if necessary, but it is probably much easier to just give it a try. A web searched regarding this question indicates that it will work (e.g. http://www.steves-internet-guide.com/using-arduino-pubsub-mqtt-client/).
In the config file it would look like this:
"mqttServer": "1.2.3.4",
Thanks for the quick response. I use iobroker with the mqtt broker as server. My other mqtt clients all work, but the intex project just won't work. Unfortunately I have no idea if the problem is with the ESP, the wiring or the software. The ESP is connected to the WLAN and can also be pinged.
Below are some pictures of my configuration: config.json
iobroker Server
iobroker Client
Do the data points have to be added manually at iobroker?
Many Thanks
I have no experience with the iobroker myself. Maybe someone else can provide more specific help. Here are some general ideas:
Is ist possible to enter the IP of the MQTT-Server in the config.json? Or what do I have to change to make it work?