I've been working on an app in flutter that connects to a ble device and responds to button presses from the device. I've tried various packages and frameworks and none works. I decided to try nrf connect to test the devices and it connects to a all the devices but even with subscribing to the notify/indicate characteristics button taps don't do anything. The devices are the minew b10 and two satech beacons. Does anyone have any ideas on what to do?
I'm testing the app on android 12 using a package called flutter_blue. The website and documentation for the b10 are below
website: https://www.minew.com/product/b10-smart-emergency-button/
Future<void> setListener(BluetoothCharacteristic characteristic) async {
print(characteristic.isNotifying);
await characteristic.setNotifyValue(true);
print(characteristic.isNotifying);
try {
// while (connectText.value == 'DISCONNECT') {
characteristic.value.listen((event) {
print('event: $event');
});
} catch (e) {
print('error: $e');
}
}
This is the section of the code responsible for subscribing to the notify/indicate characteristic.