-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththingProperties.h
36 lines (27 loc) · 1.18 KB
/
thingProperties.h
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
// Code generated by Arduino IoT Cloud, DO NOT EDIT.
#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>
const char DEVICE_LOGIN_NAME[] = "d6d26f79-bdaa-4fc4-a2ce-8d84dd0d8e3b";
const char SSID[] = SECRET_SSID; // Network SSID (name)
const char PASS[] = SECRET_OPTIONAL_PASS; // Network password (use for WPA, or use as key for WEP)
const char DEVICE_KEY[] = SECRET_DEVICE_KEY; // Secret device password
void onDistChange();
void onBuzzChange();
void onNightLedChange();
void onRedLedChange();
void onEtatChange();
float dist;
CloudLight buzz;
CloudLight night_led;
CloudLight red_led;
int etat;
void initProperties(){
ArduinoCloud.setBoardId(DEVICE_LOGIN_NAME);
ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);
ArduinoCloud.addProperty(dist, READWRITE, ON_CHANGE, onDistChange);
ArduinoCloud.addProperty(buzz, READWRITE, ON_CHANGE, onBuzzChange);
ArduinoCloud.addProperty(night_led, READWRITE, ON_CHANGE, onNightLedChange);
ArduinoCloud.addProperty(red_led, READWRITE, ON_CHANGE, onRedLedChange);
ArduinoCloud.addProperty(etat, READWRITE, ON_CHANGE, onEtatChange);
}
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);