SweetPants wrote: ↑Monday 05 November 2018 9:07
pit34 wrote: ↑Sunday 04 November 2018 23:39
With QoS level set to 1 or 2 on MQTT gateway, ACK is enable and communication between devices and MQTT gateway must be unfailing.
Make sure your MQTT library for the ESP supports QOS1 and/or 2. Not all of them do.
Yes. I have read some documentations and i think i will try "Homie for ESP8266" library. This supports QOS1 with retained messages.
So MQTT device to/from MQTT gateway communication can be unreliable (wireless network) but should be unfailing (Homie for ESP8266 with QOS1 and retained message von device side + Mosquitto gateway side).
MQTT gateway to/from Domoticz controller should be reliable and unfailing (wired network).
Now, i am just looking for give error feedback to Domoticz with Mosquitto. For example: Domoticz send command to Mosquitto, but switch device (relay, etc..) is not online (wireless problem, etc..).
Mosquitto must give error feedback to Domoticz on communication error to hold sync between Domoticz virtual switches and physical switches.
It's begin to smell good

.
Thanks !