sigfox
Fork of Sigfox by
Diff: Sigfox.cpp
- Revision:
- 8:b10abac6a42e
- Parent:
- 6:799a482a7024
- Child:
- 10:8ff45b9e136b
--- a/Sigfox.cpp Tue May 30 21:32:57 2017 +0000
+++ b/Sigfox.cpp Sun Jun 04 16:06:45 2017 +0000
@@ -76,6 +76,14 @@
return &PAC[0];
}
+float Sigfox::getTemperature() {
+ char buff[6];
+ _at->send("AT$T?");
+ _at->read(buff, 6);
+ buff[5] = 0;
+ return ((double)atoi(buff))/10;
+}
+
sigfoxvoltage_t Sigfox::getVoltages() {
sigfoxvoltage_t volt;
char buff[12];
