-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththingProperties.h
36 lines (27 loc) · 1.27 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[] = "d3d18253-e46e-498a-8dfe-235c1163ae1a";
const char SSID[] = SECRET_SSID; // Network SSID (name)
const char PASS[] = SECRET_PASS; // Network password (use for WPA, or use as key for WEP)
const char DEVICE_KEY[] = SECRET_DEVICE_KEY; // Secret device password
void onMotorContorllerChange();
void onMyLEDChange();
void onOpenDoorChange();
float ultrasonic;
int motorContorller;
bool isBread;
bool myLED;
bool openDoor;
bool startToast
void initProperties(){
ArduinoCloud.setBoardId(DEVICE_LOGIN_NAME);
ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);
ArduinoCloud.addProperty(ultrasonic, READ, ON_CHANGE, NULL);
ArduinoCloud.addProperty(motorContorller, READWRITE, ON_CHANGE, onMotorContorllerChange);
ArduinoCloud.addProperty(isBread, READ, ON_CHANGE, NULL);
ArduinoCloud.addProperty(myLED, READWRITE, ON_CHANGE, onMyLEDChange);
ArduinoCloud.addProperty(openDoor, READWRITE, ON_CHANGE, onOpenDoorChange);
ArduinoCloud.addProperty(startToast, READWRITE, ON_CHANGE, onStartToastChange);
}
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);