pxt-calliope/docs/reference/bluetooth/set-transmit-power.md

1.1 KiB

Bluetooth Set Transmit Power

~hint

For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be paired with the @boardname@. Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.

~

Change the output power level of the transmitter to the given value.

bluetooth.setTransmitPower(7);

Parameters

  • power: a number in the range 0..7, where 0 is the lowest power and 7 is the highest.

See also

About Bluetooth, @boardname@ Bluetooth profile overview , @boardname@ Bluetooth profile reference, Bluetooth on @boardname@ resources, Bluetooth SIG

bluetooth