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.
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
MQTT/MQTTPacket/MQTTPublish.h@0:0a2f634d3324, 2017-02-09 (annotated)
- Committer:
- jksoft
- Date:
- Thu Feb 09 07:26:57 2017 +0000
- Revision:
- 0:0a2f634d3324
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| jksoft | 0:0a2f634d3324 | 1 | /******************************************************************************* | 
| jksoft | 0:0a2f634d3324 | 2 | * Copyright (c) 2014 IBM Corp. | 
| jksoft | 0:0a2f634d3324 | 3 | * | 
| jksoft | 0:0a2f634d3324 | 4 | * All rights reserved. This program and the accompanying materials | 
| jksoft | 0:0a2f634d3324 | 5 | * are made available under the terms of the Eclipse Public License v1.0 | 
| jksoft | 0:0a2f634d3324 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. | 
| jksoft | 0:0a2f634d3324 | 7 | * | 
| jksoft | 0:0a2f634d3324 | 8 | * The Eclipse Public License is available at | 
| jksoft | 0:0a2f634d3324 | 9 | * http://www.eclipse.org/legal/epl-v10.html | 
| jksoft | 0:0a2f634d3324 | 10 | * and the Eclipse Distribution License is available at | 
| jksoft | 0:0a2f634d3324 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. | 
| jksoft | 0:0a2f634d3324 | 12 | * | 
| jksoft | 0:0a2f634d3324 | 13 | * Contributors: | 
| jksoft | 0:0a2f634d3324 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation | 
| jksoft | 0:0a2f634d3324 | 15 | *******************************************************************************/ | 
| jksoft | 0:0a2f634d3324 | 16 | |
| jksoft | 0:0a2f634d3324 | 17 | #ifndef MQTTPUBLISH_H_ | 
| jksoft | 0:0a2f634d3324 | 18 | #define MQTTPUBLISH_H_ | 
| jksoft | 0:0a2f634d3324 | 19 | |
| jksoft | 0:0a2f634d3324 | 20 | int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid, | 
| jksoft | 0:0a2f634d3324 | 21 | MQTTString topicName, unsigned char* payload, int payloadlen); | 
| jksoft | 0:0a2f634d3324 | 22 | |
| jksoft | 0:0a2f634d3324 | 23 | int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName, | 
| jksoft | 0:0a2f634d3324 | 24 | unsigned char** payload, int* payloadlen, unsigned char* buf, int len); | 
| jksoft | 0:0a2f634d3324 | 25 | |
| jksoft | 0:0a2f634d3324 | 26 | int MQTTSerialize_puback(unsigned char* buf, int buflen, unsigned short packetid); | 
| jksoft | 0:0a2f634d3324 | 27 | int MQTTSerialize_pubrel(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid); | 
| jksoft | 0:0a2f634d3324 | 28 | int MQTTSerialize_pubcomp(unsigned char* buf, int buflen, unsigned short packetid); | 
| jksoft | 0:0a2f634d3324 | 29 | |
| jksoft | 0:0a2f634d3324 | 30 | #endif /* MQTTPUBLISH_H_ */ |