Version to make it easier to reuse without source modifications
MQTTPacket/MQTTSubscribe.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 MQTTSUBSCRIBE_H_ |
JMF | 0:5cd4781e0c88 | 18 | #define MQTTSUBSCRIBE_H_ |
JMF | 0:5cd4781e0c88 | 19 | |
JMF | 0:5cd4781e0c88 | 20 | int MQTTSerialize_subscribe(unsigned char* buf, int buflen, unsigned char dup, unsigned short packetid, |
JMF | 0:5cd4781e0c88 | 21 | int count, MQTTString topicFilters[], int requestedQoSs[]); |
JMF | 0:5cd4781e0c88 | 22 | |
JMF | 0:5cd4781e0c88 | 23 | int MQTTDeserialize_subscribe(unsigned char* dup, unsigned short* packetid, |
JMF | 0:5cd4781e0c88 | 24 | int maxcount, int* count, MQTTString topicFilters[], int requestedQoSs[], unsigned char* buf, int len); |
JMF | 0:5cd4781e0c88 | 25 | |
JMF | 0:5cd4781e0c88 | 26 | int MQTTSerialize_suback(unsigned char* buf, int buflen, unsigned short packetid, int count, int* grantedQoSs); |
JMF | 0:5cd4781e0c88 | 27 | |
JMF | 0:5cd4781e0c88 | 28 | int MQTTDeserialize_suback(unsigned short* packetid, int maxcount, int* count, int grantedQoSs[], unsigned char* buf, int len); |
JMF | 0:5cd4781e0c88 | 29 | |
JMF | 0:5cd4781e0c88 | 30 | |
JMF | 0:5cd4781e0c88 | 31 | #endif /* MQTTSUBSCRIBE_H_ */ |