ON THIS PAGE
This object represents a BLE GATT service and is used to manage BLE clients in two-way communication. It provides an event to an attached message port when a new client appears. It also manages the client state, provides client update events, and times out the client after a period of inactivity.
The clients themselves are represented by the roBtClient object.
ifBtClientManager
Start(params As roAssociativeArray) As Boolean
Starts BLE communication. This method accepts the following parameters:
client_timeout
: The amount of time (in seconds) that a client can be inactive before being disconnected.service_uuid
: A UUID that identifies the serviceclient_uuid
: The client-identifier attributeuser_variable_uuid
: The attribute for updating user variablescommand_uuid
: The attribute for commandsdevice_info_uuid
: The attribute for device informationdevice_data_uuid
: The attribute for device data
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 roBtClientEvent to the attached message port. An event is raised whenever the end of the queue is reached.
ifIdentity
GetIdentity() As Integer
Returns a unique number that can be used to identify roBtClientEvent objects that originate from this object.
ifUserData
SetUserData(user_data As Object)
Sets the user data that will be returned when events are raised.
GetUserData() As Object
Returns the user data that has previously been set via SetUserData()
. It will return Invalid if no data has been set.
ifFailureReason
GetFailureReason() As String
Returns additional useful information if a method on the ifBtClientManager interface returns False.