--- libaitmqtt/inc/mqttapi.h 2012/05/08 09:07:31 1.1.2.8 +++ libaitmqtt/inc/mqttapi.h 2012/05/08 11:29:56 1.1.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: mqttapi.h,v 1.1.2.8 2012/05/08 09:07:31 misho Exp $ +* $Id: mqttapi.h,v 1.1.2.9 2012/05/08 11:29:56 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -142,6 +142,19 @@ int mqtt_cli_Close(mqtt_cli_t ** __restrict cli); * must be free() result! */ unsigned char *mqtt_cli_Subscribe(mqtt_cli_t * __restrict cli, + mqtt_subscr_t * __restrict Topics, unsigned short msgID, + unsigned char Dup, unsigned char QoS); +/* + * mqtt_cli_Unsubscribe() - Unsubscribe from broker + * + * @cli = connected client + * @Topics = Topics for unsubscribes + * @msgID = Message ID + * @Dup = Duplicated request + * @QoS = Message QoS + * return: -1 error or 0 ok + */ +int mqtt_cli_Unsubscribe(mqtt_cli_t * __restrict cli, mqtt_subscr_t * __restrict Topics, unsigned short msgID, unsigned char Dup, unsigned char QoS); #endif