This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于Bluetopia中降低功耗函数VS_Set_Max_Output_Power的问题,请指点



有三个问题:

1、该函数貌似只能影响建链之后的功耗,无法影响ble扫描的功耗,请问如何降低调用startscanning,或者调用connnectle但目标设备不在覆盖范围时的功耗?这个功耗高达三十几mA。

2、使用该函数时,传入功耗值为0和12时,实测显示功耗变化非常之小,也就一两个mA,是否有问题?

3、该函数的入参MaxPower是无符号类型,因此函数中的如下语句其实是有问题的:

SmallestDifference      = ((MaxPower - 4) >= 0) ? (MaxPower - 4):(-(MaxPower - 4));

问号表达式会一直为真,导致冒号后面的分支不会得到执行。

btw:我的设备是central设备。