WifiTransport class
PrinterTransport ueber einen WLAN-/Netzwerkdrucker (Roh-TCP, Port 9100).
Zustandslos im Sinne des Verbindungshaltens: jeder send oeffnet eine eigene, kurzlebige Socket-Verbindung zu ip:port und schliesst wieder — delegiert an KeckPrinterService.printRawBytesWifi und beruehrt den globalen aktiven Drucker nicht.
- Implemented types
Constructors
- WifiTransport({required String ip, int port = 9100, Duration timeout = const Duration(seconds: 5)})
-
Erzeugt einen WLAN-Transport zu
ip:port.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ip → String
-
Ziel-IP des Netzwerkdruckers.
final
- port → int
-
Ziel-Port (Standard 9100 fuer Roh-ESC/POS).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Verbindungs-/Sende-Timeout.
final
Methods
-
dispose(
) → Future< void> -
No-op — der WLAN-Transport haelt keine dauerhafte Verbindung.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
List< int> bytes) → Future<KeckPrintResult> -
Sendet fertige ESC/POS-
bytes. Wirft nicht — das Ergebnis (gesendet oder Fehler) kommt im KeckPrintResult.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited