discoverCharacteristics static method
discoverCharacteristics will return a list of BleCharacteristic
Implementation
static Future<List<BleCharacteristic>> discoverCharacteristics(
{required String address,
required String serviceId,
bool forceRefresh = false}) async {
var data = await _channel.invokeMethod("characteristics", args: {
"device": WinHelper.getDeviceFromAddress(address),
"service": WinHelper.toWindowsUuid(serviceId),
"forceRefresh": forceRefresh,
});
return List<BleCharacteristic>.from(
data.map((e) => BleCharacteristic.fromJson(e)));
}