MQTTAsync_failureData * response);
static void cb_mqtt_on_delivery_complete (void *context, MQTTAsync_token token);
static void cb_mqtt_on_connection_lost (void *context, char *cause);
-static int cb_mqtt_on_message_arrived (void *context, char *topicName,
- int topicLen, MQTTAsync_message * message);
static void cb_mqtt_on_send_success (void *context,
MQTTAsync_successData * response);
static void cb_mqtt_on_send_failure (void *context,
return FALSE;
MQTTAsync_setCallbacks (self->mqtt_client_handle, self,
- cb_mqtt_on_connection_lost, cb_mqtt_on_message_arrived,
- cb_mqtt_on_delivery_complete);
+ cb_mqtt_on_connection_lost, NULL, cb_mqtt_on_delivery_complete);
ret = MQTTAsync_connect (self->mqtt_client_handle, &self->mqtt_conn_opts);
if (ret != MQTTASYNC_SUCCESS) {
}
/**
- * @brief A callback function to be given to the MQTTAsync_setCallbacks funtion.
- * In the case of the publisher, this callbase is not used.
- */
-static int
-cb_mqtt_on_message_arrived (void *context, char *topicName, int topicLen,
- MQTTAsync_message * message)
-{
- return 1;
-}
-
-/**
* @brief A callback function corresponding to MQTTAsync_responseOptions's
* onSuccess.
*/