Future<bool> sendCommand(List<int> data) async { final s = _socket; if (s == null) return false; try { s.add(data); await s.flush(); return true; } catch (_) { return false; } }