Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Sigfox by
Diff: Sigfox.cpp
- Revision:
- 8:b10abac6a42e
- Parent:
- 6:799a482a7024
- Child:
- 10:8ff45b9e136b
diff -r 48396d48ae12 -r b10abac6a42e Sigfox.cpp
--- 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];
