123

Committer:
m_ahsan
Date:
Thu Jan 03 05:49:15 2019 +0000
Revision:
2:573d544b5d3c
Parent:
0:c524a894b5e8
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icraggs 0:c524a894b5e8 1 /*******************************************************************************
icraggs 0:c524a894b5e8 2 * Copyright (c) 2014 IBM Corp.
icraggs 0:c524a894b5e8 3 *
icraggs 0:c524a894b5e8 4 * All rights reserved. This program and the accompanying materials
icraggs 0:c524a894b5e8 5 * are made available under the terms of the Eclipse Public License v1.0
icraggs 0:c524a894b5e8 6 * and Eclipse Distribution License v1.0 which accompany this distribution.
icraggs 0:c524a894b5e8 7 *
icraggs 0:c524a894b5e8 8 * The Eclipse Public License is available at
icraggs 0:c524a894b5e8 9 * http://www.eclipse.org/legal/epl-v10.html
icraggs 0:c524a894b5e8 10 * and the Eclipse Distribution License is available at
icraggs 0:c524a894b5e8 11 * http://www.eclipse.org/org/documents/edl-v10.php.
icraggs 0:c524a894b5e8 12 *
icraggs 0:c524a894b5e8 13 * Contributors:
icraggs 0:c524a894b5e8 14 * Ian Craggs - initial API and implementation and/or initial documentation
icraggs 0:c524a894b5e8 15 *******************************************************************************/
icraggs 0:c524a894b5e8 16
icraggs 0:c524a894b5e8 17 #if !defined(MQTTSNSUBSCRIBE_H_)
icraggs 0:c524a894b5e8 18 #define MQTTSNSUBSCRIBE_H_
icraggs 0:c524a894b5e8 19
icraggs 0:c524a894b5e8 20 int MQTTSNSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned short packetid,
icraggs 0:c524a894b5e8 21 MQTTSN_topicid* topicFilter);
icraggs 0:c524a894b5e8 22 int MQTTSNDeserialize_subscribe(unsigned char* dup, int* qos, unsigned short* packetid,
icraggs 0:c524a894b5e8 23 MQTTSN_topicid* topicFilter, unsigned char* buf, int buflen);
icraggs 0:c524a894b5e8 24
icraggs 0:c524a894b5e8 25 int MQTTSNSerialize_suback(unsigned char* buf, int buflen, int qos, unsigned short topicid, unsigned short packetid,
icraggs 0:c524a894b5e8 26 unsigned char returncode);
icraggs 0:c524a894b5e8 27 int MQTTSNDeserialize_suback(int* qos, unsigned short* topicid, unsigned short* packetid,
icraggs 0:c524a894b5e8 28 unsigned char* returncode, unsigned char* buf, int buflen);
icraggs 0:c524a894b5e8 29
icraggs 0:c524a894b5e8 30 #endif /* MQTTSNSUBSCRIBE_H_ */
icraggs 0:c524a894b5e8 31