Skip to main content

bluetooth.settxpower(power)

Sets the imp004m Bluetooth transmit power level

Availability

Device (from impOS™ 38)

Parameters

Name Type Description
power Integer Transmission power in dBm

Returns

Nothing

Description

This method sets the transmit power level for advertisements and scan responses. The parameter power is an integer in the range -16 to +4, with values that are not a multiple of four being truncated (ie. -1 and -3 will be interpreted as -4). Passing in a value outside of this range will throw a Squirrel runtime error. The default (prior to calling this function after each bluetooth.open() and maximum transmit power is +4dBm.

The transmit power level can be altered whether or not advertising is enabled.