net:add get rssi api for esp8266_tc

This commit is contained in:
mculover666
2022-07-06 20:28:25 +08:00
parent 87fd8e839d
commit 3977c36054
3 changed files with 64 additions and 0 deletions

View File

@@ -215,3 +215,11 @@ int tos_tf_module_smartconfig_stop(void)
}
return -1;
}
int tos_tf_module_get_rssi(int *rssi)
{
if (g_tencent_firmware_module && g_tencent_firmware_module->get_rssi) {
return g_tencent_firmware_module->get_rssi(rssi);
}
return -1;
}

View File

@@ -139,6 +139,8 @@ typedef struct tencent_firmware_module_st {
int (*ota_read_fwinfo)(ota_fw_info_t *ota_fw_info);
int (*ota_read_fwdata)(uint8_t *ota_fw_data_buffer,uint16_t buf_size);
int (*get_rssi)(int *rssi);
int (*start_smartconfig)(void);
@@ -323,5 +325,14 @@ int tos_tf_module_smartconfig_start(void);
*/
int tos_tf_module_smartconfig_stop(void);
/**
* @brief Get the wifi rssi
*
* @param[in] rssi the pointer to rssi value
*
* @return errcode
*/
int tos_tf_module_get_rssi(int *rssi);
#endif