sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
462 stars 179 forks source link

.setTxPower() doesnot work for NRF51822 #249

Closed TamojitSaha closed 5 years ago

TamojitSaha commented 5 years ago

Originally posted by @sandeepmistry in https://github.com/sandeepmistry/arduino-BLEPeripheral/issues/186#issuecomment-346180369

TamojitSaha commented 5 years ago

I am using nrf51822 board! https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/161a4163f565be3cd5b62bbc59f0c2b522d82b02/src/BLEPeripheral.cpp#L198

I also checked the following for the function definition... https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/161a4163f565be3cd5b62bbc59f0c2b522d82b02/src/nRF51822.cpp#L1312-L1334

I do not see any change in the RSSI value if I change the TX Power! Is this normal? Where I am going wrong? Please clarify.

TamojitSaha commented 5 years ago

It works after certain changes. Check #240