MiIO class
MiIO LAN protocol.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
discover(
InternetAddress address, {Duration timeout = const Duration(seconds: 3)}) → Stream< Tuple2< InternetAddress, MiIOPacket> > -
Send discovery packet to broadcast
address
. -
hello(
InternetAddress address, {Duration timeout = const Duration(seconds: 3)}) → Future< MiIOPacket> -
Send a hello packet to
address
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
InternetAddress address, MiIOPacket packet, {Duration timeout = const Duration(seconds: 3)}) → Future< MiIOPacket> -
Send a
packet
toaddress
. -
stampOf(
int deviceId) → int? - Get current stamp of device from cache if existed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited