What MQTT client are you using? Most people use PubSubClient, it works well with ESP and has examples to show usage with callback.
What MQTT client are you using? Most people use PubSubClient, it works well with ESP and has examples to show usage with callback.