1. Add Bluetooth Data Source
- Log in to the Kuika platform.
- Open your mobile project from the Apps screen.
- Go to the Datasources module.
- Open the new data source screen by clicking the + icon on the left. Then select Bluetooth as the Datasource Type.
- Fill in the required fields:
- Device Name (required)
- Device ID, Device Address (optional)
2. Defining the Bluetooth Method
- Open the data source you created → click the ADD NEW METHOD button.
- Enter the required fields:
- Name
- Characteristic ID
- Service ID
- Characteristic Type: Read, Write, Notify, Indicate
- Save with SAVE.
3. Adding the Scan Devices Action
- Click on the method you created.
- In the right panel, select +ADD ACTION → Custom → userguide123 → ScanDevices_bluetooth.
Parameter Definitions
Required Parameters:
- executePageInitActionAfterClose (Boolean):
- When set to true, page init actions are automatically retriggered after the device scanning window is closed.
Optional Parameters:
- serviceIds (Array of UUIDs):
- Scans only Bluetooth devices with specific Service IDs. Example: [“0000180d-0000-1000-8000-00805f9b34fb”] (Heart Rate Service)
- connectingMessage (String):
- Information message to be displayed during connection. Example: “Connecting to device, please wait...”