timeSync function

Future<void> timeSync (
  1. ConnectionInfo connectionInfo
)

Synchronizes your system time with the controller.

Throws an error if the controller cannot be reached.

Implementation

Future<void> timeSync(ConnectionInfo connectionInfo) async {
  final packets = [createTimeSyncPacket(connectionInfo.controllerId)];
  await sendPackets(packets);
}