【mbed OS5対応バージョン】データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。 https://mlkcca.com/
Dependents: mbed-os-example-wifi-milkcocoa MilkcocoaOsSample_Eth MilkcocoaOsSample_ESP8266 MilkcocoaOsSample_Eth_DigitalIn
MQTT/MQTTPacket/MQTTPublish.h@13:61e0cc093180, 2018-03-26 (annotated)
- Committer:
- jksoft
- Date:
- Mon Mar 26 04:49:20 2018 +0000
- Revision:
- 13:61e0cc093180
- Parent:
- 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_ */ |