|
Link Kit C-SDK
5.0.0
|
描述消息传输协议实现方法的结构体 更多...
#include <aiot_linkconfig_api.h>
成员变量 | |
| void *(* | init )(void *proto_config) |
| 消息传递初始化 更多... | |
| int32_t(* | connect )(void *handle) |
| 建连认证 更多... | |
| int32_t(* | send_message )(void *handle, const aiot_msg_t *message) |
| 建连认证 更多... | |
| int32_t(* | sub_topic )(void *handle, char *topic, uint8_t qos) |
| 订阅该topic消息 更多... | |
| int32_t(* | unsub_topic )(void *handle, char *topic, uint8_t qos) |
| 取消该topic消息订阅 更多... | |
| int32_t(* | disconnect )(void *handle) |
| 断开连接 更多... | |
| void(* | deinit )(void **handle) |
| 消息传递反初始化 更多... | |
描述消息传输协议实现方法的结构体
| void*(* aiot_protocol_t::init) (void *proto_config) |
消息传递初始化
| int32_t(* aiot_protocol_t::connect) (void *handle) |
建连认证
| int32_t(* aiot_protocol_t::send_message) (void *handle, const aiot_msg_t *message) |
建连认证
| int32_t(* aiot_protocol_t::sub_topic) (void *handle, char *topic, uint8_t qos) |
订阅该topic消息
| int32_t(* aiot_protocol_t::unsub_topic) (void *handle, char *topic, uint8_t qos) |
取消该topic消息订阅
| int32_t(* aiot_protocol_t::disconnect) (void *handle) |
断开连接
| void(* aiot_protocol_t::deinit) (void **handle) |
消息传递反初始化
1.8.11