2021-01-11 12:07 AM
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)
}
2021-01-20 03:22 AM
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.
2022-05-18 12:41 AM
Thanks a lot for your response. It worked.