Fork of my original MQTTGateway

Dependencies:   mbed-http

Committer:
vpcola
Date:
Sat Apr 08 14:43:14 2017 +0000
Revision:
0:a1734fe1ec4b
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vpcola 0:a1734fe1ec4b 1 /*******************************************************************************
vpcola 0:a1734fe1ec4b 2 * Copyright (c) 2014 IBM Corp.
vpcola 0:a1734fe1ec4b 3 *
vpcola 0:a1734fe1ec4b 4 * All rights reserved. This program and the accompanying materials
vpcola 0:a1734fe1ec4b 5 * are made available under the terms of the Eclipse Public License v1.0
vpcola 0:a1734fe1ec4b 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
vpcola 0:a1734fe1ec4b 7 *
vpcola 0:a1734fe1ec4b 8 * The Eclipse Public License is available at
vpcola 0:a1734fe1ec4b 9 * http://www.eclipse.org/legal/epl-v10.html
vpcola 0:a1734fe1ec4b 10 * and the Eclipse Distribution License is available at
vpcola 0:a1734fe1ec4b 11 * http://www.eclipse.org/org/documents/edl-v10.php.
vpcola 0:a1734fe1ec4b 12 *
vpcola 0:a1734fe1ec4b 13 * Contributors:
vpcola 0:a1734fe1ec4b 14 * Ian Craggs - initial API and implementation and/or initial documentation
vpcola 0:a1734fe1ec4b 15 *******************************************************************************/
vpcola 0:a1734fe1ec4b 16
vpcola 0:a1734fe1ec4b 17 #ifndef MQTTSUBSCRIBE_H_
vpcola 0:a1734fe1ec4b 18 #define MQTTSUBSCRIBE_H_
vpcola 0:a1734fe1ec4b 19
vpcola 0:a1734fe1ec4b 20 int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid,
vpcola 0:a1734fe1ec4b 21 int count, MQTTString topicFilters[], int requestedQoSs[]);
vpcola 0:a1734fe1ec4b 22
vpcola 0:a1734fe1ec4b 23 int MQTTDeserialize_subscribe(unsigned char* dup, unsigned short* packetid,
vpcola 0:a1734fe1ec4b 24 int maxcount, int* count, MQTTString topicFilters[], int requestedQoSs[], unsigned char* buf, int len);
vpcola 0:a1734fe1ec4b 25
vpcola 0:a1734fe1ec4b 26 int MQTTSerialize_suback(unsigned char* buf, int buflen, unsigned short packetid, int count, int* grantedQoSs);
vpcola 0:a1734fe1ec4b 27
vpcola 0:a1734fe1ec4b 28 int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int len);
vpcola 0:a1734fe1ec4b 29
vpcola 0:a1734fe1ec4b 30
vpcola 0:a1734fe1ec4b 31 #endif /* MQTTSUBSCRIBE_H_ */