LocalControl class
Entry point for local control.
Constructors
- LocalControl(String id, [Duration scanningPeriod = const Duration(seconds: 15), bool stopScanOnSuccess = true])
- Creates object for local control and starts polling timer.
Properties
- deviceAddress → IPAndPort?
-
The IP address and port number of the device once
discovered.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Rainmaker ID of the device to locally control.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Releases resources used by this object.
-
getNodeDetails(
[bool forceDeviceCheck = false]) → Future< Map< String, dynamic> > - Obtains the node configuration.
-
getParamsValues(
[bool forceDeviceCheck = false]) → Future< Map< String, dynamic> > - Obtains the device parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateParamValue(
Map< String, dynamic> body, [bool forceDeviceCheck = false]) → Future<void> - Sets the device parameters.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited