Object function reference

available

A reference entry for available

Object function · BluetoothDevice

available() ⇒ boolean

Returns whether ZPE can use the native Bluetooth Low Energy bridge on this system.

YASS
if BluetoothDevice::available()
  print("Bluetooth is available")
end if