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.
Dependencies: X_NUCLEO_IKS01A1-f255a2c75ecb mbed-rtos mbed
Diff: log.h
- Revision:
- 2:0b8065489409
- Parent:
- 0:1eaebb55408a
- Child:
- 22:23d5bb18d6a0
- Child:
- 25:2197b8bb930c
--- a/log.h Sat May 14 09:30:21 2016 +0000
+++ b/log.h Sat May 14 13:58:57 2016 +0000
@@ -1,17 +1,16 @@
#ifndef LOGSTRUCT_H
#define LOGSTRUCT_H
-struct Log {
- uint8_t id;
+#include <time.h>
+
+struct log_data {
float tempCelsius;
- float tempFarenheit;
float humidity;
float pressure;
- int32_t accelerometer[3];
- int32_t gyroscope[3];
- int32_t magnetometer[3];
- char* date;
- int count;
+ float accelerometer[3];
+ float gyroscope[3];
+ float magnetometer[3];
+ time_t date;
};
#endif
\ No newline at end of file
