Version to make it easier to reuse without source modifications
MQTTPacket/MQTTPublish.h@0:5cd4781e0c88, 2018-03-27 (annotated)
- Committer:
- JMF
- Date:
- Tue Mar 27 17:26:35 2018 +0000
- Revision:
- 0:5cd4781e0c88
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:5cd4781e0c88 | 1 | /******************************************************************************* |
JMF | 0:5cd4781e0c88 | 2 | * Copyright (c) 2014 IBM Corp. |
JMF | 0:5cd4781e0c88 | 3 | * |
JMF | 0:5cd4781e0c88 | 4 | * All rights reserved. This program and the accompanying materials |
JMF | 0:5cd4781e0c88 | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
JMF | 0:5cd4781e0c88 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
JMF | 0:5cd4781e0c88 | 7 | * |
JMF | 0:5cd4781e0c88 | 8 | * The Eclipse Public License is available at |
JMF | 0:5cd4781e0c88 | 9 | * http://www.eclipse.org/legal/epl-v10.html |
JMF | 0:5cd4781e0c88 | 10 | * and the Eclipse Distribution License is available at |
JMF | 0:5cd4781e0c88 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
JMF | 0:5cd4781e0c88 | 12 | * |
JMF | 0:5cd4781e0c88 | 13 | * Contributors: |
JMF | 0:5cd4781e0c88 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
JMF | 0:5cd4781e0c88 | 15 | *******************************************************************************/ |
JMF | 0:5cd4781e0c88 | 16 | |
JMF | 0:5cd4781e0c88 | 17 | #ifndef MQTTPUBLISH_H_ |
JMF | 0:5cd4781e0c88 | 18 | #define MQTTPUBLISH_H_ |
JMF | 0:5cd4781e0c88 | 19 | |
JMF | 0:5cd4781e0c88 | 20 | int MQTTSerialize_publish(unsigned char* buf, int buflen, unsigned char dup, int qos, unsigned char retained, unsigned short packetid, |
JMF | 0:5cd4781e0c88 | 21 | MQTTString topicName, unsigned char* payload, int payloadlen); |
JMF | 0:5cd4781e0c88 | 22 | |
JMF | 0:5cd4781e0c88 | 23 | int MQTTDeserialize_publish(unsigned char* dup, int* qos, unsigned char* retained, unsigned short* packetid, MQTTString* topicName, |
JMF | 0:5cd4781e0c88 | 24 | unsigned char** payload, int* payloadlen, unsigned char* buf, int len); |
JMF | 0:5cd4781e0c88 | 25 | |
JMF | 0:5cd4781e0c88 | 26 | int MQTTSerialize_puback(unsigned char* buf, int buflen, unsigned short packetid); |
JMF | 0:5cd4781e0c88 | 27 | int MQTTSerialize_pubrel(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid); |
JMF | 0:5cd4781e0c88 | 28 | int MQTTSerialize_pubcomp(unsigned char* buf, int buflen, unsigned short packetid); |
JMF | 0:5cd4781e0c88 | 29 | |
JMF | 0:5cd4781e0c88 | 30 | #endif /* MQTTPUBLISH_H_ */ |