Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
...
...
Stop() As Boolean
Stops BLE communication.
SetDeviceInfo(a As Object) As Boolean
SetDeviceData(a As Object) As Boolean
ifMessagePort
SetPort(a As Object)
Posts messages of type roBtClientManagerEvent to the attached message port.
ifIdentity
GetIdentity() As Integer
Returns a unique number that can be used to identify roBtClientManagerEvent objects that originate from this object.
Note | ||
---|---|---|
| ||
The ifIdentity interface has been deprecated. We recommend using the ifUserData interface instead. |
ifUserData
SetUserData(user_data As Object)
Sets the user data that will be returned when events are raised.
GetUserData() As Object
...
...
ifFailureReason
GetFailureReason() As String
Returns additional useful information when a method on the ifBtClientManager interface returns False.
...
This object represents a BLE GATT service, where the player acts as a peripheral and another device (phone, tablet, etc.) acts as the client/central. Unlike roBtManager, which allows for unidirectional, non-connectable communication (i.e. beaconing), the roBtClientManager object is used to facilitate two-way, connectable communication. It provides an event to an attached message port when a new client connects. It also manages the client state, provides client update events, and times out the client after a period of inactivity.
The BLE clients themselves are represented by the roBtClient object.
ifBtClientManager
Start(params As roAssociativeArray) As Boolean
Starts BLE communication. This method accepts the following parameters:
...
Note | ||
---|---|---|
| ||
There is a limit 512 bytes on each attribute. |
...
...