I'm trying to config my ESP8266 running Micropython, to notify "last-will", as shown below and according to developer as noted on github.
still- I get no notification when I disconnect my ESP8266, other command and notification work as needed.
self.mqtt_client = MQTTClient(self.mqtt_client_id, self.server, self.qos, user=self.user,
for topic in self.topic1:
print("Connected to MQTT server")
self.notify_error("Error connecting MQTT broker")