Andrew Reed / Mbed OS CITY1082-i2c_master_wifi_mqtt
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MQTTSNSubscribe.h Source File

MQTTSNSubscribe.h

00001 /*******************************************************************************
00002  * Copyright (c) 2014 IBM Corp.
00003  *
00004  * All rights reserved. This program and the accompanying materials
00005  * are made available under the terms of the Eclipse Public License v1.0
00006  * and Eclipse Distribution License v1.0 which accompany this distribution.
00007  *
00008  * The Eclipse Public License is available at
00009  *    http://www.eclipse.org/legal/epl-v10.html
00010  * and the Eclipse Distribution License is available at
00011  *   http://www.eclipse.org/org/documents/edl-v10.php.
00012  *
00013  * Contributors:
00014  *    Ian Craggs - initial API and implementation and/or initial documentation
00015  *******************************************************************************/
00016 
00017 #if !defined(MQTTSNSUBSCRIBE_H_)
00018 #define MQTTSNSUBSCRIBE_H_
00019 
00020 int MQTTSNSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned short packetid,
00021         MQTTSN_topicid* topicFilter);
00022 int MQTTSNDeserialize_subscribe(unsigned char* dup, int* qos, unsigned short* packetid,
00023         MQTTSN_topicid* topicFilter, unsigned char* buf, int buflen);
00024 
00025 int MQTTSNSerialize_suback(unsigned char* buf, int buflen, int qos, unsigned short topicid, unsigned short packetid,
00026         unsigned char returncode);
00027 int MQTTSNDeserialize_suback(int* qos, unsigned short* topicid, unsigned short* packetid,
00028         unsigned char* returncode, unsigned char* buf, int buflen);
00029 
00030 #endif /* MQTTSNSUBSCRIBE_H_ */