writeCharacteristics static method

void writeCharacteristics({
  1. required HBleDeviceServicesCharacteristics characteristics,
  2. required Uint8List value,
  3. required bool withResponse,
})

Implementation

static void writeCharacteristics({required HBleDeviceServicesCharacteristics characteristics,required Uint8List value,required bool withResponse,}){
  Map data = {
    "identifier":characteristics.identifier,
    "servicesUuid":characteristics.servicesUuid,
    "characteristicsUuid":characteristics.characteristicsUuid,
    "data":_uint8ListToStr(value),
    "withResponse":withResponse,
  };
  sent("writeCharacteristics",data);
}