Skip to main content

bluetooth.getsecuritycode()

Retrieves the current Bluetooth pairing code

Availability

Device
Only available on the imp004m and imp006 (impOS 42)

Returns

Integer — the current Bluetooth pairing code

Description

This method returns the current pairing code, if one has been set manually using bluetooth.setsecurity() or applied by default. If no pairing code has been set, for example because your Squirrel calls

bluetooth.setsecurity(1);

then the method will return 0.