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.
Diff: Sigfox.h
- Revision:
- 6:799a482a7024
- Parent:
- 5:66e05787ad5c
- Child:
- 7:48396d48ae12
diff -r 66e05787ad5c -r 799a482a7024 Sigfox.h
--- a/Sigfox.h Sat May 27 10:55:06 2017 +0000
+++ b/Sigfox.h Mon May 29 19:42:14 2017 +0000
@@ -17,16 +17,24 @@
* Send command to Sigfox
*
*/
+#ifndef SIGFOX_H
+#define SIGFOX_H
#include "ATParser.h"
#include "mbed.h"
+typedef struct _sigfoxvoltage {
+ double current;
+ double last;
+} sigfoxvoltage_t;
+
class Sigfox
{
private:
ATParser *_at;
char ID[9];
char PAC[17];
+ char tmp[12];
public:
Sigfox(ATParser &at) : _at(&at) {
@@ -53,4 +61,8 @@
char *getID();
char *getPAC();
-};
\ No newline at end of file
+
+ sigfoxvoltage_t getVoltages();
+};
+
+#endif /* SIGFOX_H */
\ No newline at end of file