Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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 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:

  • client_timeout: The amount of time (in seconds) that a client can be inactive before being disconnected.
  • service_uuid: A UUID that identifies the service
  • client_uuid: The client-identifier attribute
  • user_variable_uuid: The attribute for updating user variables
  • command_uuid: The attribute for commands
  • device_info_uuid: The attribute for device information
  • device_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 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.

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 when a method on the ifBtClientManager interface returns False.


  • No labels