Bluetooth Is Open Action Implementation Steps

1. Adding a Bluetooth Data Source

  • Log in to the Kuika platform.
  • Open your mobile project from the Apps screen.
  • Go to the Datasources module from the left menu.
  • Open the add new datasource screen via the + icon on the left. Then select Bluetooth as Datasource Type.
  • Device Name is mandatory, Device ID and Device Address are optional.
  • Registration is completed by clicking the CREATE button.

2. Defining a New Method

  • Enter the added data source.
  • Select ADD NEW METHOD.
  • Define the required fields: Name, Characteristic ID, Service ID, Characteristic Type.
  • SAVE saves the method.

3. Adding Bluetooth Is Open Action

  • Click on the method you created.
  • Select + ADD ACTION → Custom → userguide123 → BluetoothIsOpen_bluetooth from the Properties panel on the right.

Parameter Definitions

  • showAlert (Boolean): Specifies whether to show a warning message to the user if Bluetooth is turned off. Example: true
  • alertMessage (String): The content of the alert message to be shown to the user. Example: “Please turn on Bluetooth”