-
Notifications
You must be signed in to change notification settings - Fork 5
/
sensorTest.ino
44 lines (33 loc) · 940 Bytes
/
sensorTest.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
sensorTest.ino - This is basic sensor test example.
Created by Yasin Kaya (selengalp), july 13, 2018.
Warning : This example could be use with only Arduino CellularIoT App Shield.
*/
#include "Sixfab_CellularIoT.h"
SixfabCellularIoTApp node;
double ax, ay, az;
// setup
void setup() {
node.init();
node.turnOnUserLED();
delay(TIMEOUT);
node.turnOffUserLED();
delay(TIMEOUT);
node.turnOnRelay();
delay(TIMEOUT);
node.turnOffRelay();
delay(TIMEOUT);
node.readAccel(&ax, &ay, &az);
DEBUG.print("ax: "); DEBUG.println(ax);
DEBUG.print("ay: "); DEBUG.println(ay);
DEBUG.print("az: "); DEBUG.println(az);
DEBUG.println("Temperature: ");DEBUG.print(node.readTemp());DEBUG.println();
delay(TIMEOUT);
DEBUG.println("Humidity: ");DEBUG.print(node.readHum());DEBUG.println();
delay(TIMEOUT);
DEBUG.println("Light: ");DEBUG.print(node.readLux());
delay(TIMEOUT);
}
// loop
void loop() {
}