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

Method getData

Arduino/libraries/ST_Anything/PS_Illuminance.cpp:93–98  ·  view source on GitHub ↗

function to get data from sensor and queue results for transfer to ST Cloud

Source from the content-addressed store, hash-verified

91
92 //function to get data from sensor and queue results for transfer to ST Cloud
93 void PS_Illuminance::getData()
94 {
95 int m_nSensorValue=map(analogRead(m_nAnalogInputPin), SENSOR_LOW, SENSOR_HIGH, MAPPED_LOW, MAPPED_HIGH);
96
97 Everything::sendSmartString(getName() + " " + String(m_nSensorValue));
98 }
99
100 void PS_Illuminance::setPin(byte pin)
101 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected