FireBLE Buy

Using the FS-QN9021 Bluetooth low energy (BLE) Module,The core is based on 32 Quintic company ARM Cortex-M0 processor architecture and single mode BT4.0 Low Energy (BLE) BLE designed single-chip system QN9021.

RSSI test app for IOS

Update time:2018-04-13 Views:1484

Scanning Devices

In order to connect with your own device,please scan peripherals with specified services.

[centralManager scanForPeripheralsWithServices:@[[CBUUID UUIDWithString:BATTERY_SERVICE_UUID],[CBUUID UUIDWithString:IMALERT_SERVICE_UUID],[CBUUID UUIDWithString:INTERACTION_SERVICE_UUID],[CBUUID UUIDWithString:OTA_SERVICE_UUID]]options:@{ CBCentralManagerScanOptionAllowDuplicatesKey : @YES }];

Also you can choose to scan all divice:

[centralManager scanForPeripheralsWithServices:nil options:@{ CBCentralManagerScanOptionAllowDuplicatesKey : @YES }];

Connecting Devices

 [centralManager connectPeripheral:peripheral options:nil];

Reading RSSI value

[_blePeripheral.discoveredPeripheral readRSSI];


After using a function to read RSSI value, this value will be evaluated into the parameter RSSI.