Update irrigation example to support time limited activation, small c… #205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…hange in scheduler code
Example inject node data in Node Red:
Set Address 101 off
[{"data":0,"type":0,"id":101}]
Get status of address 102
[{"data":0,"type":1,"id":102}]
Set address 103 on for 20 seconds
[{"data":20,"type":0,"id":103}]
Working on multiple array elements but I think some other code needs to be changed before that is supported.
Format of loadFDRS....
loadFDRS(data, type, address);
Get Coil status of address 102 (data value is ignored)
loadFDRS(1, 1, 102);
Turn off (set) Coil at address 102 for an indefinite amount of time
loadFDRS(0, 0, 102);
Turn on Coil (set) at address 102 for an indefinite amount of time
loadFDRS(1, 0, 102);
Turn on (set) Coil at address 102 for 300 seconds
loadFDRS(300, 0, 102);
When turning on coil for certain amount of time the data value
must be 10 or greater and is in units of seconds.