MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / refresh

Method refresh

Arduino/libraries/ST_Anything/S_TimedRelay.cpp:166–170  ·  view source on GitHub ↗

called periodically by Everything class to ensure ST Cloud is kept consistent with the state of the contact sensor

Source from the content-addressed store, hash-verified

164
165 //called periodically by Everything class to ensure ST Cloud is kept consistent with the state of the contact sensor
166 void S_TimedRelay::refresh()
167 {
168 //Queue the relay status update the ST Cloud
169 Everything::sendSmartString(getName() + " " + (m_bCurrentState == HIGH ? F("on") : F("off")));
170 }
171
172 void S_TimedRelay::setOutputPin(byte pin)
173 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected