timeSync function
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);
}