roBtCentralManager
9 min
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 \<font color="#704ae0">string\</font> the object path of the adapter the device belongs to device address \<font color="#704ae0">string\</font> the bluetooth device address of the remote device rssi \<font color="#704ae0">int\</font> the received signal strength indicator of the remote device (inquiry or advertising) data \<font color="#704ae0">robytearray\</font> 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 \<font color="#704ae0">string\</font> the object path of the adapter the device belongs to address \<font color="#704ae0">string\</font> the bluetooth device address of the remote device name \<font color="#704ae0">string\</font> the bluetooth remote name alias \<font color="#704ae0">string\</font> the name alias for the remote device rssi \<font color="#704ae0">int\</font> the received signal strength indicator of the remote device (inquiry or advertising) tx power \<font color="#704ae0">int\</font> the advertised transmitted power level (inquiry or advertising) uuids \<font color="#704ae0">roarray\</font> an roarray of uuid strings that represent the available remote services advertising flags \<font color="#704ae0">roarray\</font> an roarray of advertisement flags manufacturer data \<font color="#704ae0">roarray\</font> an roarray of roassociativearray where each element has id \<font color="#704ae0">int\</font> the id of the manufacturer data \<font color="#704ae0">robytearray\</font> an robytearray of mfg data service data \<font color="#704ae0">roassociativearray\</font> an roassociativearray with the following pairs uuid \<font color="#704ae0">string\</font> uuid strings that represent the available remote services service data \<font color="#704ae0">robytearray\</font> 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 \<font color="#704ae0">string\</font> the object path of the adapter the device belongs to address \<font color="#704ae0">string\</font> the bluetooth device address of the remote device example mp = createobject("romessageport") btc = createobject("robtcentralmanager") btc setport(mp) btc scan({advertising reports true})