TuyaOS
宏定义
app_agent.h 文件参考

APIs of TUYA LAN service 更多...

#include "tuya_svc_lan.h"
app_agent.h 的引用(Include)关系图:

浏览源代码.

宏定义

#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

宏定义说明

◆ is_lan_connected

#define is_lan_connected ( )    (tuya_svc_lan_get_valid_connections() != 0)

judge if lan connect

返回
TRUE/FALSE

◆ lan_data_report_cb

#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

参数
[in]fr_typerefer to LAN_PRO_HEAD_APP_S
[in]ret_coderefer to LAN_PRO_HEAD_APP_S
[in]datarefer to LAN_PRO_HEAD_APP_S
[in]lenrefer to LAN_PRO_HEAD_APP_S
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_disconnect_all_sockets

#define lan_disconnect_all_sockets ( )    tuya_svc_lan_disconnect_all()

disconnect all sockets

返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_dp_sata_report

#define lan_dp_sata_report (   data,
  len 
)    tuya_svc_lan_dp_report(data,len)

lan dp report

参数
[in]datadata buf
[in]lenbuf length
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_cfg

#define lan_pro_cntl_cfg (   cfg,
  data 
)    tuya_svc_lan_cfg(cfg,data)

lan configure

参数
[in]cfgrefer to Lan_Cfg_e
[in]databuf
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_disable

#define lan_pro_cntl_disable ( )    tuya_svc_lan_disable()

lan protocol diable

返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_enable

#define lan_pro_cntl_enable ( )    tuya_svc_lan_enable()

lan protocol enable

返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_exit

#define lan_pro_cntl_exit ( )    tuya_svc_lan_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

#define lan_pro_cntl_get_valid_connect_cnt ( )    tuya_svc_lan_get_valid_connections()

get vaild connect count

返回
vaild count

◆ lan_pro_cntl_init

#define lan_pro_cntl_init (   wechat)    tuya_svc_lan_init()

lan protocol init

参数
[in]wechattrue/false
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_register_cb

#define lan_pro_cntl_register_cb (   frame_type,
  handler 
)    tuya_svc_lan_register_cb(frame_type,handler)

register callback

参数
[in]frame_typerefer to LAN_PRO_HEAD_APP_S
[in]frame_typerefer to lan_cmd_handler_cb
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ lan_pro_cntl_unregister_cb

#define lan_pro_cntl_unregister_cb (   frame_type)    tuya_svc_lan_unregister_cb(frame_type)

unregister callback

参数
[in]frame_typerefer to LAN_PRO_HEAD_APP_S
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h