Tag temp fxns protected as they should be
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -463,7 +463,7 @@ class TinyGsmSim5360 : public TinyGsmModem<TinyGsmSim5360>,
|
|||||||
/*
|
/*
|
||||||
* Temperature functions
|
* Temperature functions
|
||||||
*/
|
*/
|
||||||
|
protected:
|
||||||
// get temperature in degree celsius
|
// get temperature in degree celsius
|
||||||
float getTemperatureImpl() {
|
float getTemperatureImpl() {
|
||||||
// Enable Temparature Reading
|
// Enable Temparature Reading
|
||||||
|
@@ -554,7 +554,7 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>,
|
|||||||
/*
|
/*
|
||||||
* Temperature functions
|
* Temperature functions
|
||||||
*/
|
*/
|
||||||
|
protected:
|
||||||
// get temperature in degree celsius
|
// get temperature in degree celsius
|
||||||
uint16_t getTemperatureImpl() {
|
uint16_t getTemperatureImpl() {
|
||||||
sendAT(GF("+CPMUTEMP"));
|
sendAT(GF("+CPMUTEMP"));
|
||||||
|
@@ -622,7 +622,7 @@ class TinyGsmSaraR4 : public TinyGsmModem<TinyGsmSaraR4>,
|
|||||||
/*
|
/*
|
||||||
* Temperature functions
|
* Temperature functions
|
||||||
*/
|
*/
|
||||||
|
protected:
|
||||||
float getTemperatureImpl() {
|
float getTemperatureImpl() {
|
||||||
// First make sure the temperature is set to be in celsius
|
// First make sure the temperature is set to be in celsius
|
||||||
sendAT(GF("+UTEMP=0")); // Would use 1 for Fahrenheit
|
sendAT(GF("+UTEMP=0")); // Would use 1 for Fahrenheit
|
||||||
|
@@ -378,7 +378,7 @@ class TinyGsmSequansMonarch
|
|||||||
/*
|
/*
|
||||||
* Temperature functions
|
* Temperature functions
|
||||||
*/
|
*/
|
||||||
|
protected:
|
||||||
float getTemperatureImpl() {
|
float getTemperatureImpl() {
|
||||||
sendAT(GF("+SMDTH"));
|
sendAT(GF("+SMDTH"));
|
||||||
if (waitResponse(10000L, GF("+SMDTH: ")) != 1) {
|
if (waitResponse(10000L, GF("+SMDTH: ")) != 1) {
|
||||||
|
Reference in New Issue
Block a user