Skip to main content
NP_it
Associate II
Jan 11, 2021 8:07 AM UTC
Question

How to increase transmit gain in STM32WB ?

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)

}

This topic has been closed for replies.

2 replies

Remi QUINTIN
ST Technical Moderator
Jan 20, 2021 11:22 AM UTC

​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_it
NP_itAuthor
Associate II
May 18, 2022 7:41 AM UTC

Thanks a lot for your response. It worked.