However, when using these functions, the linker throws me an error:
Code: Select all
ld: main.c:9: undefined reference to `esp_phy_rftest_init'
My code:
Code: Select all
#define LOG_TAG "rftest"
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#include "esp_log.h"
#include "esp_phy_init.h"
#include "esp_phy_cert_test.h"
void setup() {
esp_wifi_power_domain_on();
esp_phy_rftest_config(1); // Enable RF test mode
esp_phy_rftest_init(); // Initialize RF test
esp_phy_tx_contin_en(true); // Enable continuous mode
}
void app_main() {
ESP_LOGD(LOG_TAG, "Booting");
setup();
}