en-us_commands:reference:irtcgettemperature
This is an old revision of the document!
Table of Contents
IrtcGetTemperature()
IrtcGetTemperature() returns the internal RTC temperature.
bool IrtcGetTemperature(float& temperature)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IrtcGetTemperature(temperature) | float& temperature | bool | Returns the internal RTC temperature. |
Example
float temperature; if (IrtcGetTemperature(temperature)) { Serial.println(temperature, 2); }
Precautions
Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.
en-us_commands/reference/irtcgettemperature.1788785568.txt.gz · Last modified: by 127.0.0.1
