setTimeZoneId method
Set the time zone ID of the time zone.
Implementation
Future<void> setTimeZoneId(int timeZoneId) async {
if (_timeZoneId == null) {
_log.warning("Time Zone Id characteristic not found on device");
return;
}
ByteData data = ByteData(4);
data.setInt64(0, timeZoneId, Endian.little);
Uint8List byteList = data.buffer.asUint8List();
await _timeZoneId!.write(byteList);
}