4#include <SparkFun_TMP117.h>
Central location for pinout and config defines.
int attempt_number
Definition Device.h:19
Parent class for sensor objects.
Definition Sensor.h:13
Implementation of a Sensor for the TMP117.
Definition TMP117Sensor.h:14
String decodeToCSV(uint8_t *&packet)
Decodes sensor data from the packet into a CSV string.
Definition TMP117Sensor.cpp:64
bool verify()
Returns if sensor is connected and working.
Definition TMP117Sensor.cpp:28
float tempC
Definition TMP117Sensor.h:17
TMP117 tmp
Definition TMP117Sensor.h:16
void readDataPacket(uint8_t *&packet)
Reads sensor data (Temp (C)) and appends to the passed uint8_t array pointer, incrementing it.
Definition TMP117Sensor.cpp:50
float getTempC()
Getter for tempC.
Definition TMP117Sensor.cpp:78
String readData()
Reads temperature in Celcius from TMP117.
Definition TMP117Sensor.cpp:38
TwoWire * i2c_bus
Definition TMP117Sensor.h:18