APIs of TUYA LAN service
更多...
浏览源代码.
|
|
#define | FRM_GRP_CMD 0xd1 |
| |
|
#define | FRM_GRP_OPER_ENGR 0xd0 |
| |
| #define | is_lan_connected() (tuya_svc_lan_get_valid_connections() != 0) |
| | judge if lan connect 更多...
|
| |
| #define | lan_data_report_cb(fr_type, ret_code, data, len) tuya_svc_lan_data_report(fr_type,ret_code,data,len) |
| | lan dp report callback 更多...
|
| |
| #define | lan_disconnect_all_sockets() tuya_svc_lan_disconnect_all() |
| | disconnect all sockets 更多...
|
| |
| #define | lan_dp_sata_report(data, len) tuya_svc_lan_dp_report(data,len) |
| | lan dp report 更多...
|
| |
| #define | lan_pro_cntl_cfg(cfg, data) tuya_svc_lan_cfg(cfg,data) |
| | lan configure 更多...
|
| |
| #define | lan_pro_cntl_disable() tuya_svc_lan_disable() |
| | lan protocol diable 更多...
|
| |
| #define | lan_pro_cntl_enable() tuya_svc_lan_enable() |
| | lan protocol enable 更多...
|
| |
| #define | lan_pro_cntl_exit() tuya_svc_lan_exit() |
| | lan protocol exit 更多...
|
| |
| #define | lan_pro_cntl_get_valid_connect_cnt() tuya_svc_lan_get_valid_connections() |
| | get vaild connect count 更多...
|
| |
| #define | lan_pro_cntl_init(wechat) tuya_svc_lan_init() |
| | lan protocol init 更多...
|
| |
| #define | lan_pro_cntl_register_cb(frame_type, handler) tuya_svc_lan_register_cb(frame_type,handler) |
| | register callback 更多...
|
| |
| #define | lan_pro_cntl_unregister_cb(frame_type) tuya_svc_lan_unregister_cb(frame_type) |
| | unregister callback 更多...
|
| |
APIs of TUYA LAN service
- 版本
- 0.1
- 日期
- 2015-06-18
- 注解
- This file is deprecated, please use tuya_svc_lan.h
- 版权所有
- Copyright 2015-2021 Tuya Inc. All Rights Reserved.
◆ is_lan_connected
judge if lan connect
- 返回
- TRUE/FALSE
◆ lan_data_report_cb
lan dp report callback
- 参数
-
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_disconnect_all_sockets
disconnect all sockets
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_dp_sata_report
lan dp report
- 参数
-
| [in] | data | data buf |
| [in] | len | buf length |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_cfg
lan configure
- 参数
-
| [in] | cfg | refer to Lan_Cfg_e |
| [in] | data | buf |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_disable
lan protocol diable
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_enable
lan protocol enable
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_exit
lan protocol exit
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_get_valid_connect_cnt
get vaild connect count
- 返回
- vaild count
◆ lan_pro_cntl_init
lan protocol init
- 参数
-
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_register_cb
register callback
- 参数
-
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ lan_pro_cntl_unregister_cb
unregister callback
- 参数
-
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h