function to get data from sensor and queue results for transfer to ST Cloud
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected