33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
// Code generated by Arduino IoT Cloud, DO NOT EDIT.
|
|
|
|
#include <ArduinoIoTCloud.h>
|
|
#include <Arduino_ConnectionHandler.h>
|
|
#include "arduino_secrets.h"
|
|
|
|
const char DEVICE_LOGIN_NAME[] = "a7087090-eb37-4732-8876-eb657530570c";
|
|
|
|
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
|
|
|
|
|
|
String tingkatKematangan;
|
|
float mq135_ppm;
|
|
float mq3_ppm;
|
|
float suhu;
|
|
String namaBuah;
|
|
|
|
void initProperties(){
|
|
|
|
ArduinoCloud.setBoardId(DEVICE_LOGIN_NAME);
|
|
ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);
|
|
ArduinoCloud.addProperty(tingkatKematangan, READ, ON_CHANGE, NULL);
|
|
ArduinoCloud.addProperty(mq135_ppm, READ, ON_CHANGE, NULL);
|
|
ArduinoCloud.addProperty(mq3_ppm, READ, ON_CHANGE, NULL);
|
|
ArduinoCloud.addProperty(suhu, READ, ON_CHANGE, NULL);
|
|
ArduinoCloud.addProperty(namaBuah, READ, ON_CHANGE, NULL);
|
|
|
|
}
|
|
|
|
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);
|