123
MQTTSNSearch.h@2:573d544b5d3c, 2019-01-03 (annotated)
- Committer:
- m_ahsan
- Date:
- Thu Jan 03 05:49:15 2019 +0000
- Revision:
- 2:573d544b5d3c
- Parent:
- 0:c524a894b5e8
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
icraggs | 0:c524a894b5e8 | 1 | /******************************************************************************* |
icraggs | 0:c524a894b5e8 | 2 | * Copyright (c) 2014 IBM Corp. |
icraggs | 0:c524a894b5e8 | 3 | * |
icraggs | 0:c524a894b5e8 | 4 | * All rights reserved. This program and the accompanying materials |
icraggs | 0:c524a894b5e8 | 5 | * are made available under the terms of the Eclipse Public License v1.0 |
icraggs | 0:c524a894b5e8 | 6 | * and Eclipse Distribution License v1.0 which accompany this distribution. |
icraggs | 0:c524a894b5e8 | 7 | * |
icraggs | 0:c524a894b5e8 | 8 | * The Eclipse Public License is available at |
icraggs | 0:c524a894b5e8 | 9 | * http://www.eclipse.org/legal/epl-v10.html |
icraggs | 0:c524a894b5e8 | 10 | * and the Eclipse Distribution License is available at |
icraggs | 0:c524a894b5e8 | 11 | * http://www.eclipse.org/org/documents/edl-v10.php. |
icraggs | 0:c524a894b5e8 | 12 | * |
icraggs | 0:c524a894b5e8 | 13 | * Contributors: |
icraggs | 0:c524a894b5e8 | 14 | * Ian Craggs - initial API and implementation and/or initial documentation |
icraggs | 0:c524a894b5e8 | 15 | *******************************************************************************/ |
icraggs | 0:c524a894b5e8 | 16 | |
icraggs | 0:c524a894b5e8 | 17 | #if !defined(MQTTSNSEARCH_H_) |
icraggs | 0:c524a894b5e8 | 18 | #define MQTTSNSEARCH_H_ |
icraggs | 0:c524a894b5e8 | 19 | |
icraggs | 0:c524a894b5e8 | 20 | int MQTTSNSerialize_advertise(unsigned char* buf, int buflen, unsigned char gatewayid, unsigned short duration); |
icraggs | 0:c524a894b5e8 | 21 | int MQTTSNDeserialize_advertise(unsigned char* gatewayid, unsigned short* duration, unsigned char* buf, int buflen); |
icraggs | 0:c524a894b5e8 | 22 | |
icraggs | 0:c524a894b5e8 | 23 | int MQTTSNSerialize_searchgw(unsigned char* buf, int buflen, unsigned char radius); |
icraggs | 0:c524a894b5e8 | 24 | int MQTTSNDeserialize_searchgw(unsigned char* radius, unsigned char* buf, int buflen); |
icraggs | 0:c524a894b5e8 | 25 | |
icraggs | 0:c524a894b5e8 | 26 | int MQTTSNSerialize_gwinfo(unsigned char* buf, int buflen, unsigned char gatewayid, unsigned short gatewayaddress_len, |
icraggs | 0:c524a894b5e8 | 27 | unsigned char* gatewayaddress); |
icraggs | 0:c524a894b5e8 | 28 | int MQTTSNDeserialize_gwinfo(unsigned char* gatewayid, unsigned short* gatewayaddress_len, unsigned char** gatewayaddress, |
icraggs | 0:c524a894b5e8 | 29 | unsigned char* buf, int buflen); |
icraggs | 0:c524a894b5e8 | 30 | |
icraggs | 0:c524a894b5e8 | 31 | #endif /* MQTTSNSEARCH_H_ */ |
icraggs | 0:c524a894b5e8 | 32 |