source/MQTTOperation.c
/**
 * @brief Disconnect client from the MQTT broker
 *
 * @return NONE
 */
@brief Disconnect client from the MQTT broker
@return NONE
@brief Disconnect client from the MQTT broker @return NONE
void MQTTOperation_DeInit(void) {
	LOG_AT_DEBUG(("MQTTOperation: Calling DeInit\r\n"));
	MQTT_UnSubsribeFromTopic_Z(&MqttSubscribeCommandInfo,
	MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS);
	MQTT_UnSubsribeFromTopic_Z(&MqttSubscribeRestartInfo,
	MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS);
	MQTT_UnSubsribeFromTopic_Z(&MqttSubscribeErrorInfo,
	MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS);
	Retcode_T retcode = RETCODE_OK;
	retcode = Mqtt_DisconnectFromBroker_Z();
	if (retcode != RETCODE_OK) {
		LOG_AT_DEBUG(("MQTTOperation: Error diconnecting from Broker\r\n"));
		Retcode_RaiseError(retcode);
	}
}
void MQTTOperation_DeInit ( void ) { LOG_AT_DEBUG ( ( " \r \n " ) ) ; MQTT_UnSubsribeFromTopic_Z ( & MqttSubscribeCommandInfo , MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS ) ; MQTT_UnSubsribeFromTopic_Z ( & MqttSubscribeRestartInfo , MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS ) ; MQTT_UnSubsribeFromTopic_Z ( & MqttSubscribeErrorInfo , MQTT_UNSUBSCRIBE_TIMEOUT_IN_MS ) ; Retcode_T retcode = RETCODE_OK ; retcode = Mqtt_DisconnectFromBroker_Z ( ) ; if ( retcode != RETCODE_OK ) { LOG_AT_DEBUG ( ( " \r \n " ) ) ; Retcode_RaiseError ( retcode ) ; } }
@brief Disconnect client from the MQTT broker
 @return NONE
@brief Disconnect client from the MQTT broker @return NONE
//ignore return code