How can I send empty mqtt message to broker to delete some retained message?
Posted: Fri Mar 15, 2019 12:20 pm
How can I send empty mqtt message to broker to delete some retained message?
I tried following but it is not working:
I tried following but it is not working:
Code: Select all
esp_mqtt_client_publish(mqttclient, "mytopic"," ",0, 0, 0);
esp_mqtt_client_publish(mqttclient, "mytopic",' ',0, 0, 0);
esp_mqtt_client_publish(mqttclient, "mytopic",NULL,0, 0, 0);