using ato flag to turn off port
using ato flag to turn off port
Is there a way to turn off port 5(skimmer) if the ato times out? last night for some reason my skimmer started overflowing and filling my skimmate bottle. This caused my ato to time out and skimmer kept draining water into skimmate bottle almost over filling it it. i want to shutoff skimmer if ato trips the time set and sends a flag.
Re: using ato flag to turn off port
Try this:
Code: Select all
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
Roberto.
Re: using ato flag to turn off port
error compiling
Compiling code for RA_STAR board
Number of Relay Expansion Modules: 1
Relay Expansion Module
Dimming Signal
Reef Angel Star
firmware.ino: In function 'void loop()':
firmware.ino:105:19: error: 'class ReefAngelClass' has no member named 'isATOTimeout'
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
^
exit status 1
Progress: 41.38%
Your code has some errors and couldn't be compiled.
Please fix the errors above and try again.
Compiling code for RA_STAR board
Number of Relay Expansion Modules: 1
Relay Expansion Module
Dimming Signal
Reef Angel Star
firmware.ino: In function 'void loop()':
firmware.ino:105:19: error: 'class ReefAngelClass' has no member named 'isATOTimeout'
if (ReefAngel.isATOTimeout()) ReefAngel.Relay.Off(Port5);
^
exit status 1
Progress: 41.38%
Your code has some errors and couldn't be compiled.
Please fix the errors above and try again.
Re: using ato flag to turn off port
One thing to note, since you are using the Star, you cannot use Port5 to reference the port on the main relay box. The Star has no default/master relay box and therefore all ports are actually on the first relay box. So all Port5 should be Box1_Port5.
As for your error, there is an error with the code. It should read like this:
The letter O in timeout should be capitalized according to the libraries.
As for your error, there is an error with the code. It should read like this:
Code: Select all
if(ReefAngel.isATOTimeOut()) ReefAngel.Relay.Off(Box1_Port5);
Re: using ato flag to turn off port
Thank you Curt
Re: using ato flag to turn off port
welcomebkc6868 wrote:Thank you Curt
Sent from my XT1585 using Tapatalk