Bluetooth
Provided API allows user to set name and pin code for Bluetooth.
Bluetooth.SetName(name) - Sets Bluetooth name
name: Bluetooth name, max characters is 12. Default is "DUELink"
Returns: True = success, false = failBluetooth.SetPinCode(code) - Sets Bluetooth pin code
code: In "text", has to be 4 characters from 0 to 9. Default is "1234"
Returns: True = success, false = fail
The example below changes Bluetooth name to "DUELink00", and changes pin code to "5678"
print(duelink.Bluetooth.SetName("DUELink00"))
time.sleep(5) # Delay few seconds for Bluetooth reset
print(duelink.Bluetooth.SetPinCode("5678"))