レンタルサーバーと連携したsakura.ioの運用例
Dependencies: mbed SakuraIO MPU9250_SPI BME280 gps AQM0802A
Diff: sensors.h
- Revision:
- 0:d2c4ee597498
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors.h Wed Nov 21 08:54:34 2018 +0000
@@ -0,0 +1,17 @@
+typedef struct {
+ float temperature;
+ float pressure;
+ float humidity;
+} BME280Data;
+
+typedef struct {
+ float temperature;
+ float accelerometer[3];
+ float gyroscope[3];
+ float magnetometer[3];
+} MPU9250Data;
+
+typedef struct {
+ BME280Data bme280;
+ MPU9250Data mpu9250;
+} SensorData;
SAKURA Internet