TuyaOS
宏定义
tuya_hal_wired.h 文件参考

Common process - compatible the tuya_hal_wifi.h 更多...

#include "tal_wired.h"
#include "tuya_svc_wired.h"
tuya_hal_wired.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#define tuya_hal_wired_get_ip(ip)   tal_wired_get_ip(ip)
 Get wired ethernet ip info 更多...
 
#define tuya_hal_wired_get_mac(mac)   tal_wired_get_mac(mac)
 Check whether the hardware is connected to internet 更多...
 
#define tuya_hal_wired_get_nw_stat(stat)   tal_wired_get_status(stat)
 If the hardware has a wifi interface, and user want to connect wifi, tuya-app will notify current wifi ssid and passwd, and tuya-sdk will nofity user with this function. user should implement wifi connect process in this function. 更多...
 
#define tuya_hal_wired_set_mac(mac)   tal_wired_set_mac(mac)
 Set wired ethernet mac information 更多...
 
#define tuya_hal_wired_set_nw_stat_cb(cb)   tal_wired_set_status_cb(cb)
 

详细描述

Common process - compatible the tuya_hal_wifi.h

Common process - compatible the tuya_hal_wired.h

版本
0.1
日期
2020-11-09

宏定义说明

◆ tuya_hal_wired_get_ip

#define tuya_hal_wired_get_ip (   ip)    tal_wired_get_ip(ip)

Get wired ethernet ip info

参数
[in]ipthe ip addr info
注解
This API is used for getting wired ethernet ip info.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tuya_hal_wired_get_mac

#define tuya_hal_wired_get_mac (   mac)    tal_wired_get_mac(mac)

Check whether the hardware is connected to internet

参数
VOID
注解
This API is used to check whether the hardware is connected to internet.
返回
true on connected, false on disconnected.

Get wired ethernet mac information

参数
[out]macthe mac information
注解
This API is used for getting wired ethernet mac information
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tuya_hal_wired_get_nw_stat

#define tuya_hal_wired_get_nw_stat (   stat)    tal_wired_get_status(stat)

If the hardware has a wifi interface, and user want to connect wifi, tuya-app will notify current wifi ssid and passwd, and tuya-sdk will nofity user with this function. user should implement wifi connect process in this function.

参数
[in]ssidssid of router
[in]passwdpassword of router
注解
This API is used for setting ssid and password of the router.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

Check whether the hardware need to config

参数
VOID
注解
This API is used for checking whether the hardware need to config. if the hardware has a wifi interface, and user want to connect wifi, then return true. if the hardware does not have a wifi interface, or user do not want to connect wifi, return false.
返回
TRUE or FALSE

Get wifi rssi

参数
[out]rssiwifi rssi
注解
This API is used for getting wifi rssi. if the hardware has a wifi interface and wifi is connected, return wifi rssi, or return null.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

Get network status

参数
[out]statthe status of network
注解
This API is used for getting network status.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tuya_hal_wired_set_mac

#define tuya_hal_wired_set_mac (   mac)    tal_wired_set_mac(mac)

Set wired ethernet mac information

参数
[in]macthe mac information
注解
This API is used for setting wired ethernet mac information
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h