GoogleCloudPlatform/google-cloud-iot-arduino

Allow to set advanced MQTT callback

amarkevich opened this issue · 0 comments

Currently CloudIoTCoreMqtt::startMQTT set messageReceived callback. In some cases advanced callback is more useful:

typedef void (*MQTTClientCallbackAdvanced)(MQTTClient *client, char topic[], char bytes[], int length);

Since internal MQTTClient is private I'm unable to override startMQTT method to call MQTTClient::onMessageAdvanced