Basic C library for MQTT packet serialization and deserialization
Dependents: MQTT MQTT MQTT MQTT ... more
Fork of MQTTPacket by
This library is part of the EclipseTM Paho project; specifically the embedded client.
A basic MQTT library in C for packet serialization and deserialization
MQTTUnsubscribe.h@25:aedcaf7984d5, 2017-10-30 (annotated)
- Committer:
- Ian Craggs
- Date:
- Mon Oct 30 12:47:11 2017 +0000
- Revision:
- 25:aedcaf7984d5
- Parent:
- 14:c2052aee81de
Merging mine and Jan's changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
icraggs | 0:7734401cc1b4 | 1 | /******************************************************************************* |
icraggs | 0:7734401cc1b4 | 2 | * Copyright (c) 2014 IBM Corp. |
icraggs | 0:7734401cc1b4 | 3 | * |
icraggs | 0:7734401cc1b4 | 4 | * All rights reserved. This program and the accompanying materials |
icraggs | 0:7734401cc1b4 | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
icraggs | 0:7734401cc1b4 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
icraggs | 0:7734401cc1b4 | 7 | * |
icraggs | 0:7734401cc1b4 | 8 | * The Eclipse Public License is available at |
icraggs | 0:7734401cc1b4 | 9 | * http://www.eclipse.org/legal/epl-v10.html |
icraggs | 0:7734401cc1b4 | 10 | * and the Eclipse Distribution License is available at |
icraggs | 0:7734401cc1b4 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
icraggs | 0:7734401cc1b4 | 12 | * |
icraggs | 0:7734401cc1b4 | 13 | * Contributors: |
icraggs | 0:7734401cc1b4 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
icraggs | 0:7734401cc1b4 | 15 | *******************************************************************************/ |
icraggs | 0:7734401cc1b4 | 16 | |
icraggs | 0:7734401cc1b4 | 17 | #ifndef MQTTUNSUBSCRIBE_H_ |
icraggs | 0:7734401cc1b4 | 18 | #define MQTTUNSUBSCRIBE_H_ |
icraggs | 0:7734401cc1b4 | 19 | |
Ian Craggs |
14:c2052aee81de | 20 | int MQTTSerialize_unsubscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, |
Ian Craggs |
14:c2052aee81de | 21 | int count, MQTTString topicFilters[]); |
icraggs | 0:7734401cc1b4 | 22 | |
Ian Craggs |
14:c2052aee81de | 23 | int MQTTDeserialize_unsubscribe(unsigned char* dup, unsigned short* packetid, int max_count, int* count, MQTTString topicFilters[], |
Ian Craggs |
14:c2052aee81de | 24 | unsigned char* buf, int len); |
icraggs | 0:7734401cc1b4 | 25 | |
Ian Craggs |
14:c2052aee81de | 26 | int MQTTSerialize_unsuback(unsigned char* buf, int buflen, unsigned short packetid); |
Ian Craggs |
14:c2052aee81de | 27 | |
Ian Craggs |
14:c2052aee81de | 28 | int MQTTDeserialize_unsuback(unsigned short* packetid, unsigned char* buf, int len); |
icraggs | 0:7734401cc1b4 | 29 | |
icraggs | 0:7734401cc1b4 | 30 | #endif /* MQTTUNSUBSCRIBE_H_ */ |