cancelAmbientAlarm method

Future<List<int>> cancelAmbientAlarm(
  1. List<int> probeMac
)

盒子取消环境温度报警 使用UUID(elinkWriteUuid: FFE1)的特征值写入 Write using the characteristic value of UUID(elinkWriteUuid: FFE1)

Implementation

Future<List<int>> cancelAmbientAlarm(List<int> probeMac) {
  final payload = List.filled(8, 0xFF);
  payload[0] = 0x07;
  payload.insertAll(1, probeMac);
  return getElinkA7Data(payload);
}