Skip to main content
Redifinition
Associate II
July 29, 2022
Question

Thread/Thread_Coap_Generic otPlatRadioGetTransmitPower/otPlatRadioSetTransmitPower doesn't work

  • July 29, 2022
  • 0 replies
  • 604 views

int8_t set_tx_power = 6;
int8_t get_tx_power = 0;
 
/* Set the radio's transmit power in dBm. */
error = otPlatRadioSetTransmitPower(NULL, set_tx_power);
if (error != OT_ERROR_NONE){
}
 
/* Get the radio's transmit power in dBm.*/
error = otPlatRadioGetTransmitPower(NULL, &get_tx_power);
if (error != OT_ERROR_NONE){
}
APP_DBG("Transmit Power = %d", get_tx_power);

 The transmit power is always 0, I used STM32WB5MM-DK to do the test.

This topic has been closed for replies.