Panowie prosze o pomoc ESP8266 ARDUINO

emerce23
Posty: 36
Rejestracja: sob gru 16, 2017 10:46 pm

Witam mam problem z kodem, miesiac wczesniej wrzucał sie normalnie przez Arduino IDE a teraz wywala błedy o brak bibliotek (np.HLW8012.h itd. itd. tego jest duzo), nie rozumiem co sie znowu zmieniło...

Kod: Zaznacz cały

#include <SuplaDevice.h>
#include <supla/sensor/DS18B20.h>
#include <supla/network/esp_wifi.h>
#include <supla/control/roller_shutter.h>
#include <supla/control/relay.h>
#include <supla/control/button.h>
#include <supla/control/action_trigger.h>
#include <supla/device/status_led.h>
#include <supla/storage/littlefs_config.h>
#include <supla/network/esp_web_server.h>
#include <supla/network/html/device_info.h>
#include <supla/network/html/protocol_parameters.h>
#include <supla/network/html/status_led_parameters.h>
#include <supla/network/html/wifi_parameters.h>
#include <supla/network/html/security_certificate.h>
#include <supla/device/supla_ca_cert.h>
#include <supla/events.h>

Supla::ESPWifi wifi("TP-LINK_MARCIN", "****************");

void setup() 
{
    Serial.begin(115200);
    
    uint8_t mac[6];
    WiFi.macAddress(mac);
  
    // Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
    char GUID[SUPLA_GUID_SIZE] = {0xC6,0xEF,0x6F,0xC7,0x29,0x18,0xAE,0x0B,0x3B,0xC5,0xDB,0x9A,0x1D,0xB0,0xA3,0x3E};
    // Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
    char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {0xFC,0xC5,0x35,0xA6,0xAB,0x5F,0xAD,0x64,0x0E,0xF6,0x69,0x56,0x90,0x38,0xB3,0xF2};

    // Temperatura DS18B20
  
    DeviceAddress ds1addr = {0x28, 0xFF, 0x4B, 0xFC, 0xA2, 0x17, 0x04, 0xE8}; // Adres czujnika DS18B20 :)
    new Supla::Sensor::DS18B20(5, ds1addr); 
   
    SuplaDevice.begin(GUID, "svr71.supla.org", "marcingugula9436@gmail.com", AUTHKEY);
}

void loop() 
{
    SuplaDevice.iterate();
}
No wczesniej było bez problemu a teraz same błedy nie rozumiem naprawde :(
Awatar użytkownika
klew
Posty: 8184
Rejestracja: czw cze 27, 2019 12:16 pm
Lokalizacja: Wrocław

HLW8012 jest w Gui Generic. Może coś się z bibliotekami pomieszało?
Widzimy się na Supla Offline Party vol. 2 :!:
ODPOWIEDZ

Wróć do „supla-dev”