Skip to main content

bluetooth.getsecuritycode()

Retrieves the current Bluetooth pairing code

Availability

Device (from impOS™ 38)

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.