getControllerCount method
Get the number of controllers connected to the server.
Implementation
Future<int> getControllerCount() async {
await _send(CommandId.requestControllerCount, Uint8List(0));
final payload = await _rx.next;
final payloadByteData = ByteData.sublistView(payload.restOfPkt);
final count = payloadByteData.getUint32(0, Endian.little);
_controllerCount = count;
return count;
}