Common process - compatible the tuya_hal_wifi.h
更多...
浏览源代码.
Common process - compatible the tuya_hal_wifi.h
Common process - compatible the tuya_hal_wired.h
- 版本
- 0.1
- 日期
- 2020-11-09
- 版权所有
- Copyright 2020-2021 Tuya Inc. All Rights Reserved.
◆ tuya_hal_wired_get_ip
Get wired ethernet ip 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
Check whether the hardware is connected to internet
- 参数
-
- 注解
- 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] | mac | the 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
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] | ssid | ssid of router |
| [in] | passwd | password 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
- 参数
-
- 注解
- 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
- 参数
-
- 注解
- 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] | stat | the 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
Set wired ethernet mac information
- 参数
-
| [in] | mac | the 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