Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roBtCentralManager
9min
this object allows you to check if bluetooth is fitted; set, monitor, or retrieve the current bluetooth low energy (ble) advertisements; and scan for bluetooth devices scan(parameters as roassociativearray) as boolean when set to true , scanning includes ble advertisements parameters can include advertising reports if btadvertisingreportevent getadapter() as string returns the adapter that the advertising device belongs to getdevice() as string returns the identifier for remote advertising device getrssi() as integer returns the signal strength indicator for advertisement getdata() as robytearray returns advertisement data getadvertisement() as roassociativearray available as of bos 9 0 198 and 9 1 21, this returns an associative array containing all of the above the field names are adapter path string string the object path of the adapter the device belongs to device address string string the bluetooth device address of the remote device rssi int int the received signal strength indicator of the remote device (inquiry or advertising) data robytearray robytearray an robytearray of manufacturing data ifbtdevicefoundevent getdevice() as roassociativearray available as of bos 9 0 198 and 9 1 21, this returns an associative array containing the following adapter path string string the object path of the adapter the device belongs to address string string the bluetooth device address of the remote device name string string the bluetooth remote name alias string string the name alias for the remote device rssi int int the received signal strength indicator of the remote device (inquiry or advertising) tx power int int the advertised transmitted power level (inquiry or advertising) uuids roarray roarray an roarray of uuid strings that represent the available remote services advertising flags roarray roarray an roarray of advertisement flags manufacturer data roarray roarray an roarray of roassociativearray where each element has id int int the id of the manufacturer data robytearray robytearray an robytearray of mfg data service data roassociativearray roassociativearray an roassociativearray with the following pairs uuid string string uuid strings that represent the available remote services service data robytearray robytearray an array of service advertisement data ifbtdevicelostevent getdevice() as roassociativearray available as of bos 9 0 198 and 9 1 21, this returns an associative array containing the following adapter path string string the object path of the adapter the device belongs to address string string the bluetooth device address of the remote device example mp = createobject("romessageport") btc = createobject("robtcentralmanager") btc setport(mp) btc scan({advertising reports true})