Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MQTTPacket by
MQTTPublish.h@0:7734401cc1b4, 2014-02-04 (annotated)
- Committer:
- icraggs
- Date:
- Tue Feb 04 22:31:32 2014 +0000
- Revision:
- 0:7734401cc1b4
- Child:
- 12:cd99ac9cb25a
First version of MQTT library
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 MQTTPUBLISH_H_ |
icraggs | 0:7734401cc1b4 | 18 | #define MQTTPUBLISH_H_ |
icraggs | 0:7734401cc1b4 | 19 | |
icraggs | 0:7734401cc1b4 | 20 | int MQTTSerialize_publish(char* buf, int buflen, int dup, int qos, int retained, int packetid, MQTTString topicName, |
icraggs | 0:7734401cc1b4 | 21 | char* payload, int payloadlen); |
icraggs | 0:7734401cc1b4 | 22 | |
icraggs | 0:7734401cc1b4 | 23 | int MQTTDeserialize_publish(int* dup, int* qos, int* retained, int* packetid, MQTTString* topicName, |
icraggs | 0:7734401cc1b4 | 24 | char** payload, int* payloadlen, char* buf, int len); |
icraggs | 0:7734401cc1b4 | 25 | |
icraggs | 0:7734401cc1b4 | 26 | int MQTTSerialize_puback(char* buf, int buflen, int packetid); |
icraggs | 0:7734401cc1b4 | 27 | int MQTTSerialize_pubrel(char* buf, int buflen, int packetid, int dup); |
icraggs | 0:7734401cc1b4 | 28 | int MQTTSerialize_pubcomp(char* buf, int buflen, int packetid); |
icraggs | 0:7734401cc1b4 | 29 | |
icraggs | 0:7734401cc1b4 | 30 | #endif /* MQTTPUBLISH_H_ */ |