B4J Programming Press on the image to return to the main documentation page.

rCurieBLE

List of types:

CuriePeripheral

CuriePeripheral


Events:

ConnectState (Address As String, Connected As Boolean)
NewData (Buffer() As Byte)

Members:


  Initialize (ConnectStateSub As SubVoidStringBool, NewDataSub As SubVoidArray) As void

  Start (Name As String) As void

  Stop As void

  Write (Data() As Byte) As Boolean

Members description:

Initialize (ConnectStateSub As SubVoidStringBool, NewDataSub As SubVoidArray) As void
Initializes the object and sets the subs that will handle the events.
Start (Name As String) As void
Starts advertising and listening for connections.
The ConnectState event will be raised when there is a new connection.
Stop As void
Stops the BLE module.
Write (Data() As Byte) As Boolean
Writes data to the readable characteristic.
The connected central will receive a notification.
Message size should not exceed 20 bytes.
Top