ESPTouchTaskParameter class
Configure ESPTouchTask using an ESPTouchTaskParameter instance.
This provides great flexibility, you can for example run an ESPTouchTask for hours, if this is what your workflow requires.
Constructors
- ESPTouchTaskParameter({Duration intervalGuideCode = const Duration(milliseconds: 8), Duration intervalDataCode = const Duration(milliseconds: 8), Duration timeoutGuideCode = const Duration(seconds: 2), Duration timeoutDataCode = const Duration(seconds: 4), int repeat = 1, int oneLength = 1, int macLength = 6, int ipLength = 4, int portListening = 18266, int portTarget = 7001, Duration waitUdpReceiving = const Duration(seconds: 15), Duration waitUdpSending = const Duration(seconds: 45), int thresholdSucBroadcastCount = 1, int expectedTaskResults = 1})
-
Create ESPTouchTaskParameter.
const
Properties
- expectedTaskResults → int
-
Return results up to expectedTaskResults count.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intervalDataCode → Duration
-
the time between each data code sending
final
- intervalGuideCode → Duration
-
the time between each guide code sending
final
- ipLength → int
-
IP length in result
final
- macLength → int
-
MAC length in result
final
- oneLength → int
-
final
- portListening → int
-
Listening port, used by the server
final
- portTarget → int
-
Target port, used by the client
final
- repeat → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholdSucBroadcastCount → int
-
Threshold for how many correct broadcast should be received
final
- timeoutDataCode → Duration
-
final
- timeoutGuideCode → Duration
-
final
- waitUdpReceiving → Duration
-
Wait UDP receiving, without sending
final
- waitUdpSending → Duration
-
Wait UDP sending, including receiving
final
Methods
-
copyWith(
{Duration? intervalGuideCode, Duration? intervalDataCode, Duration? timeoutGuideCode, Duration? timeoutDataCode, int? repeat, int? oneLength, int? macLength, int? ipLength, int? portListening, int? portTarget, Duration? waitUdpReceiving, Duration? waitUdpSending, int? thresholdSucBroadcastCount, int? expectedTaskResults}) → ESPTouchTaskParameter - Copy the task parameter with some fields changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, int> -
Convert ESPTouchTaskParameter instance to a Map of
type
Map<String, int>
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited