зеркало из https://github.com/Azure/azure-umqtt-c.git
Update repository to move out of the c directory
This commit is contained in:
Родитель
f09d860703
Коммит
a3282f521b
|
@ -1,3 +1,6 @@
|
|||
[submodule "c/azure-c-shared-utility"]
|
||||
path = c/azure-c-shared-utility
|
||||
url = https://github.com/Azure/azure-c-shared-utility.git
|
||||
[submodule "azure-c-shared-utility"]
|
||||
path = azure-c-shared-utility
|
||||
url = https://github.com/Azure/azure-c-shared-utility.git
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 836b3354f80faa29b950827bfad4595a98a07782
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 393880b172be6c6effd59a129310bb739c3d5b1d
|
|
@ -1,75 +0,0 @@
|
|||
# Mqtt_Client Requirements
|
||||
|
||||
##Overview
|
||||
|
||||
Mqtt_Client is the library that encapsulates the [MQTT Protocol](http://mqtt.org/documentation)
|
||||
|
||||
##Exposed API
|
||||
|
||||
```C
|
||||
typedef struct MQTTCLIENT_DATA_INSTANCE_TAG* MQTTCLIENT_HANDLE;
|
||||
|
||||
#define MQTTCLIENT_ACTION_VALUES \
|
||||
MQTTCLIENT_ON_CONNACK, \
|
||||
MQTTCLIENT_ON_SUBSCRIBE, \
|
||||
MQTTCLIENT_ON_DISCONNECT
|
||||
|
||||
DEFINE_ENUM(MQTTCLIENT_ACTION_RESULT, MQTTCLIENT_ACTION_VALUES);
|
||||
|
||||
typedef int(*ON_MQTT_OPERATION_CALLBACK)(MQTTCLIENT_ACTION_RESULT actionResult, void* context);
|
||||
typedef void(*ON_MQTT_MESSAGE_RECV_CALLBACK)(MQTT_MESSAGE_HANDLE msgHandle, void* context);
|
||||
|
||||
extern MQTTCLIENT_HANDLE mqttclient_init(LOGGER_LOG logger, ON_MQTT_OPERATION_CALLBACK opCallback, ON_MQTT_MESSAGE_RECV_CALLBACK msgRecv, void* callCtx);
|
||||
extern void mqttclient_deinit(MQTTCLIENT_HANDLE handle);
|
||||
|
||||
extern int mqttclient_connect(MQTTCLIENT_HANDLE handle, XIO_HANDLE ioHandle, MQTTCLIENT_OPTIONS* mqttOptions);
|
||||
extern void mqttclient_disconnect(MQTTCLIENT_HANDLE handle);
|
||||
|
||||
extern int mqttclient_subscribe(MQTTCLIENT_HANDLE handle, BYTE packetId, SUBSCRIBE_PAYLOAD* payloadList, size_t payloadCount);
|
||||
extern int mqttclient_unsubscribe(MQTTCLIENT_HANDLE handle, BYTE packetId, const char** unsubscribeTopic);
|
||||
|
||||
extern int mqttclient_publish(MQTTCLIENT_HANDLE handle, MQTT_MESSAGE_HANDLE msgHandle);
|
||||
|
||||
extern void mqttclient_dowork(MQTTCLIENT_HANDLE handle);
|
||||
|
||||
```
|
||||
|
||||
##MqttClient_Init
|
||||
```
|
||||
extern MQTTCLIENT_HANDLE mqttclient_init(LOGGER_LOG logger, ON_MQTT_OPERATION_CALLBACK opCallback, ON_MQTT_MESSAGE_RECV_CALLBACK msgRecv, void* callCtx);
|
||||
```
|
||||
|
||||
##MqttClient_Deinit
|
||||
```
|
||||
extern void mqttclient_deinit(MQTTCLIENT_HANDLE handle);
|
||||
```
|
||||
|
||||
##mqttclient_connect
|
||||
```
|
||||
extern int mqttclient_connect(MQTTCLIENT_HANDLE handle, XIO_HANDLE ioHandle, MQTTCLIENT_OPTIONS* mqttOptions);
|
||||
```
|
||||
|
||||
##mqttclient_disconnect
|
||||
```
|
||||
extern void mqttclient_disconnect(MQTTCLIENT_HANDLE handle);
|
||||
```
|
||||
|
||||
##mqttclient_subscribe
|
||||
```
|
||||
extern int mqttclient_subscribe(MQTTCLIENT_HANDLE handle, BYTE packetId, const char* subscribeTopic, QOS_VALUE qosValue);
|
||||
```
|
||||
|
||||
##mqttclient_unsubscribe
|
||||
```
|
||||
extern int mqttclient_unsubscribe(MQTTCLIENT_HANDLE handle, BYTE packetId, const char* unsubscribeTopic, QOS_VALUE qosValue);
|
||||
```
|
||||
|
||||
##mqttclient_publish
|
||||
```
|
||||
extern int mqttclient_publish(MQTTCLIENT_HANDLE handle, MQTT_MESSAGE_HANDLE msgHandle);
|
||||
```
|
||||
|
||||
##mqttclient_dowork
|
||||
```
|
||||
extern void mqttclient_dowork(MQTTCLIENT_HANDLE handle);
|
||||
```
|
Загрузка…
Ссылка в новой задаче