You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am working on an ESP32 to create a Gatts-Mqtt gateway. My publish part is working but I am unable to figure out the subscribe part.I am able to subscribe to the topic but I am unable to recieve message so it doesn't send back an ack so my broker keeps publishing it the message multiple times
ESP_LOGI(MQTT_TAG, "MQTTSubscribe ...");
ret = MQTTSubscribe(&client, "test/topic", QOS1, mqtt_message_handler);
if (ret != SUCCESS) {
ESP_LOGI(MQTT_TAG, "MQTTSubscribe: %d", ret);
}
This is my subscribe code where mqtt_message_handler just prints it out in the LOG.
Please help.
The text was updated successfully, but these errors were encountered:
Hi I am working on an ESP32 to create a Gatts-Mqtt gateway. My publish part is working but I am unable to figure out the subscribe part.I am able to subscribe to the topic but I am unable to recieve message so it doesn't send back an ack so my broker keeps publishing it the message multiple times
This is my subscribe code where mqtt_message_handler just prints it out in the LOG.
Please help.
The text was updated successfully, but these errors were encountered: