ME910 support
Dependents: 5_Dragonfly_Cayenne_Sprint_IKS01A1
Fork of Cayenne-MQTT-mbed-MTSAS by
src/MQTTCommon/MQTTPublish.h@22:0dbabcc6e7b2, 2017-01-25 (annotated)
- Committer:
- jburhenn
- Date:
- Wed Jan 25 10:34:16 2017 -0700
- Branch:
- feature/multivalue
- Revision:
- 22:0dbabcc6e7b2
- Parent:
- 0:09ef59d2d0f7
Added support for multi-value arrays and size_t data type modifications from the Cayenne-MQTT-C library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jburhenn | 0:09ef59d2d0f7 | 1 | /******************************************************************************* |
jburhenn | 0:09ef59d2d0f7 | 2 | * Copyright (c) 2014 IBM Corp. |
jburhenn | 0:09ef59d2d0f7 | 3 | * |
jburhenn | 0:09ef59d2d0f7 | 4 | * All rights reserved. This program and the accompanying materials |
jburhenn | 0:09ef59d2d0f7 | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
jburhenn | 0:09ef59d2d0f7 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
jburhenn | 0:09ef59d2d0f7 | 7 | * |
jburhenn | 0:09ef59d2d0f7 | 8 | * The Eclipse Public License is available at |
jburhenn | 0:09ef59d2d0f7 | 9 | * http://www.eclipse.org/legal/epl-v10.html |
jburhenn | 0:09ef59d2d0f7 | 10 | * and the Eclipse Distribution License is available at |
jburhenn | 0:09ef59d2d0f7 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
jburhenn | 0:09ef59d2d0f7 | 12 | * |
jburhenn | 0:09ef59d2d0f7 | 13 | * Contributors: |
jburhenn | 0:09ef59d2d0f7 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
jburhenn | 0:09ef59d2d0f7 | 15 | * Xiang Rong - 442039 Add makefile to Embedded C client |
jburhenn | 0:09ef59d2d0f7 | 16 | *******************************************************************************/ |
jburhenn | 0:09ef59d2d0f7 | 17 | |
jburhenn | 0:09ef59d2d0f7 | 18 | #ifndef MQTTPUBLISH_H_ |
jburhenn | 0:09ef59d2d0f7 | 19 | #define MQTTPUBLISH_H_ |
jburhenn | 0:09ef59d2d0f7 | 20 | |
jburhenn | 0:09ef59d2d0f7 | 21 | #if !defined(DLLImport) |
jburhenn | 0:09ef59d2d0f7 | 22 | #define DLLImport |
jburhenn | 0:09ef59d2d0f7 | 23 | #endif |
jburhenn | 0:09ef59d2d0f7 | 24 | #if !defined(DLLExport) |
jburhenn | 0:09ef59d2d0f7 | 25 | #define DLLExport |
jburhenn | 0:09ef59d2d0f7 | 26 | #endif |
jburhenn | 0:09ef59d2d0f7 | 27 | |
jburhenn | 22:0dbabcc6e7b2 | 28 | DLLExport int MQTTSerialize_publish(unsigned char* buf, size_t buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid, |
jburhenn | 22:0dbabcc6e7b2 | 29 | MQTTString topicName, unsigned char* payload, size_t payloadlen); |
jburhenn | 0:09ef59d2d0f7 | 30 | |
jburhenn | 0:09ef59d2d0f7 | 31 | DLLExport int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName, |
jburhenn | 22:0dbabcc6e7b2 | 32 | unsigned char** payload, size_t* payloadlen, unsigned char* buf, size_t len); |
jburhenn | 0:09ef59d2d0f7 | 33 | |
jburhenn | 22:0dbabcc6e7b2 | 34 | DLLExport int MQTTSerialize_puback(unsigned char* buf, size_t buflen, unsigned short packetid); |
jburhenn | 22:0dbabcc6e7b2 | 35 | DLLExport int MQTTSerialize_pubrel(unsigned char* buf, size_t buflen, unsigned char dup, unsigned short packetid); |
jburhenn | 22:0dbabcc6e7b2 | 36 | DLLExport int MQTTSerialize_pubcomp(unsigned char* buf, size_t buflen, unsigned short packetid); |
jburhenn | 0:09ef59d2d0f7 | 37 | |
jburhenn | 0:09ef59d2d0f7 | 38 | #endif /* MQTTPUBLISH_H_ */ |