to co mam do tej pory nie działa. Wyświetla sie w cloudzie ale ds nie pokazuje wartości a przekaźnik nie reaguje. Pewnie czegoś brakuje w kodzie. Prosze o pomoc.
SuplaDevice - develop:
https://github.com/SUPLA/arduino/tree/develop/libraries
Kod: Zaznacz cały
#include <SPI.h>
#include <SuplaDevice.h>
// Add include to DS sensor
#include <supla/sensor/DS18B20.h>
// ESP8266 based board:
#include <supla/network/esp_wifi.h>
Supla::ESPWifi wifi("ppp", "ppp");
void setup() {
Serial.begin(9600);
// Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
char GUID[SUPLA_GUID_SIZE] = {ppp};
// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {ppp};
// CHANNEL0 - RELAY
SuplaDevice.addRelay(0, true); // 0 - Pin number where the relay is connected
// Call SuplaDevice.addRelay(44, true) with an extra "true" parameter
// to enable "port value inversion"
// where HIGH == LOW, and LOW == HIGH
new Supla::Sensor::DS18B20(3);
SuplaDevice.begin(GUID, // Global Unique Identifier
"ppp", // SUPLA server address
"ppp", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key
}
void loop() {
SuplaDevice.iterate();
}