cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase transmit gain in STM32WB ?

NP
Associate II

I want to increase the gain of my Thread device. I am trying a simple loop as follows inside a sequenced task but it never exits. The seq have the lowest prio of all.

int pwr = 0;

   while(pwr != 4)

   {

   otPlatRadioSetTransmitPower(NULL, 4);

   otPlatRadioGetTransmitPower(NULL, pwr);

   HAL_Delay(1)

}

2 REPLIES 2
Remi QUINTIN
ST Employee

​1 point you may have to clean before getting any result:  pwr is expected to be a int8_t *.

So it should be otPlatRadioGetTransmitPower(NULL, &pwr); the second parameter should be a pointeron a int8-t type.

NP
Associate II

Thanks a lot for your response. It worked.