write method

  1. @override
Future<void> write(
  1. String key,
  2. List<int> bytes
)
override

Implementation

@override
Future<void> write(String key, List<int> bytes) {
  _check();
  if (bytes.length > writeLimit) {
    throw const BleException(BleErrorCode.tooLarge, 'Write too large');
  }
  return server.write(key.split('/').last, bytes, clientId: clientId);
}