GUI Generic Builder - mam problem (errors/błędy)

Awatar użytkownika
Goral64
Posty: 3131
Rejestracja: pt gru 27, 2019 6:22 pm
Lokalizacja: Żerniki Wrocławskie
Kontakt:

Proszę aby wrzucać tutaj błędy, które zauważycie podczas korzystania z Buildera.
Mam nadzieję, że będzie łatwiej reagować na nie jak będą w jednym wyznaczonym miejscu.
Widzimy się na Supla Offline Party Season 2 :D

Obrazek
kowal00071
Posty: 94
Rejestracja: pt sty 03, 2020 6:10 pm

ESP-32
Załączniki
IMG_20211102_213930.jpg
IMG_20211102_213930.jpg (5.72 MiB) Przejrzano 1099 razy
Awatar użytkownika
Goral64
Posty: 3131
Rejestracja: pt gru 27, 2019 6:22 pm
Lokalizacja: Żerniki Wrocławskie
Kontakt:

kowal00071 pisze: śr lis 03, 2021 8:07 pmESP-32
Teraz to pojechałeś...
A jakby tak skopiować treść i wkleić do posta w </> ?
I jeszcze jakby podać jakie opcje się wybrało?
Widzimy się na Supla Offline Party Season 2 :D

Obrazek
kowal00071
Posty: 94
Rejestracja: pt sty 03, 2020 6:10 pm

Kod: Zaznacz cały

Błąd generowania
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino: In function 'void setup()':
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:271:87: error: no matching function for call to 'Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(int8_t&, int8_t&, int8_t&, int8_t&, int8_t&, int8_t&)'
     new Supla::Sensor::ThreePhasePZEMv3(pinRX1, pinTX1, pinRX2, pinTX2, pinRX3, pinTX3);
                                                                                       ^
In file included from /var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:20:0:
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:49:3: note: candidate: Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(HardwareSerial*, int8_t, int8_t, HardwareSerial*, int8_t, int8_t, HardwareSerial*, int8_t, int8_t)
   ThreePhasePZEMv3(HardwareSerial *serial1,
   ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:49:3: note:   candidate expects 9 arguments, 6 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note: candidate: constexpr Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(const Supla::Sensor::ThreePhasePZEMv3&)
 class ThreePhasePZEMv3 : public ElectricityMeter {
       ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note:   candidate expects 1 argument, 6 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note: candidate: constexpr Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(Supla::Sensor::ThreePhasePZEMv3&&)
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note:   candidate expects 1 argument, 6 provided
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:274:87: error: no matching function for call to 'Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(int8_t&, int8_t&, int8_t&, int8_t&, int8_t&, int8_t&)'
     new Supla::Sensor::ThreePhasePZEMv3(pinRX1, pinTX1, pinRX1, pinTX2, pinRX1, pinTX3);
                                                                                       ^
In file included from /var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:20:0:
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:49:3: note: candidate: Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(HardwareSerial*, int8_t, int8_t, HardwareSerial*, int8_t, int8_t, HardwareSerial*, int8_t, int8_t)
   ThreePhasePZEMv3(HardwareSerial *serial1,
   ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:49:3: note:   candidate expects 9 arguments, 6 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note: candidate: constexpr Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(const Supla::Sensor::ThreePhasePZEMv3&)
 class ThreePhasePZEMv3 : public ElectricityMeter {
       ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note:   candidate expects 1 argument, 6 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note: candidate: constexpr Supla::Sensor::ThreePhasePZEMv3::ThreePhasePZEMv3(Supla::Sensor::ThreePhasePZEMv3&&)
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/three_phase_PzemV3.h:33:7: note:   candidate expects 1 argument, 6 provided
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:277:45: error: no matching function for call to 'Supla::Sensor::PZEMv3::PZEMv3(int8_t&, int8_t&)'
     new Supla::Sensor::PZEMv3(pinRX1, pinTX1);
                                             ^
In file included from /var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399/GUI-Generic_bv4.2_gv4.2.15_pl_1dd72f7d1fa9c7f63d44815c78c85399.ino:19:0:
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:42:3: note: candidate: Supla::Sensor::PZEMv3::PZEMv3(HardwareSerial*, int8_t, int8_t)
   PZEMv3(HardwareSerial *serial, int8_t pinRx, int8_t pinTx) : pzem(serial, pinRx, pinTx) {
   ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:42:3: note:   candidate expects 3 arguments, 2 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:34:7: note: candidate: constexpr Supla::Sensor::PZEMv3::PZEMv3(const Supla::Sensor::PZEMv3&)
 class PZEMv3 : public OnePhaseElectricityMeter {
       ^
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:34:7: note:   candidate expects 1 argument, 2 provided
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:34:7: note: candidate: constexpr Supla::Sensor::PZEMv3::PZEMv3(Supla::Sensor::PZEMv3&&)
/var/www/html/code/lib/SuplaDevice/src/supla/sensor/PzemV3.h:34:7: note:   candidate expects 1 argument, 2 provided
Error during build: exit status 1

Podstawowe:

Konfiguracja (LED, Config)
Aktualizacja przez WWW
Dostępne GUI podczas pracy modułu
Protokół mDNS

Sterowanie:

Przekaźniki
Warunkowanie przekaźnika
Przyciski
Krańcówki
Pushover

1Wire

Sensor DS18B20
Sensor DHT22

I2C

Wyświetlacz OLED

Analogowe

Pomiar analogowy (ADC Pin)

Inne

RGBW, RGB, Dimmer
Licznik energii PZEM V3
Re: Esp32 błąd
Wysłano: wt lis 02, 2021 10:26 pm
autor: kowal00071

Podstawowe:

Konfiguracja (LED, Config)
Aktualizacja przez WWW
Dostępne GUI podczas pracy modułu
Protokół mDNS

Sterowanie:

Przekaźniki
Warunkowanie przekaźnika
Przyciski
Krańcówki
Pushover

1Wire

Sensor DS18B20
Sensor DHT22

I2C

Wyświetlacz OLED

Analogowe

Pomiar analogowy (ADC Pin)

Inne

RGBW, RGB, Dimmer
Licznik energii PZEM V3
Lucas_Alfa
Posty: 10
Rejestracja: sob lis 06, 2021 10:46 pm

Witam.
Mam problem przy generowaniu skryptu dla RGBW, RGB, Dimmer.

Próbuję wygenerować plik od przynajmniej 3 tygodni i nie udało się ani razu. Zwykle pojawia się poniższy błąd już przy 0%. Czasem wskaźnik postępu dochodzi do 100% i tak się kręci i kręci w nieskończoność nie wysyłając gotowego pliku.
Konfiguracja: podstawowe przyciski konfiguracyjne aktywne, do tego przełącznik RGBW, RGB, Dimmer i z automatu przełącznik Przyciski.

Kod: Zaznacz cały

/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addButton(uint8_t)':
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp:139:57: error: 'relay' was not declared in this scope; did you mean 'delay'?
  139 |     button->addAction(ConfigESP->getAction(pinButton), *relay[nr - 1], ConfigESP->getEvent(pinButton));
      |                                                         ^~~~~
      |                                                         delay
Error during build: exit status 1
Na wersji testowej generatora postęp dochodzi do kilkudziesięciu procent i wyrzuca taki błąd:

Kod: Zaznacz cały

/var/www/html/code/GUI-Generic_test_bv4.2_gv4.3.1_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addButton(uint8_t)':
/var/www/html/code/GUI-Generic_test_bv4.2_gv4.3.1_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp:153:21: error: 'relay' is not a member of 'Supla::GUI'
  153 |     if (Supla::GUI::relay.size() >= nr && Supla::GUI::relay[nr] != NULL) {
      |                     ^~~~~
/var/www/html/code/GUI-Generic_test_bv4.2_gv4.3.1_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp:153:55: error: 'relay' is not a member of 'Supla::GUI'
  153 |     if (Supla::GUI::relay.size() >= nr && Supla::GUI::relay[nr] != NULL) {
      |                                                       ^~~~~
/var/www/html/code/GUI-Generic_test_bv4.2_gv4.3.1_pl_adbbfdf7674de76753716f89d7f2801e/SuplaDeviceGUI.cpp:155:59: error: 'relay' was not declared in this scope; did you mean 'delay'?
  155 |       button->addAction(ConfigESP->getAction(pinButton), *relay[nr], Supla::ON_CLICK_1);
      |                                                           ^~~~~
      |                                                           delay
Error during build: exit status 1
krycha88
Posty: 5187
Rejestracja: pt lis 16, 2018 7:25 am
Kontakt:

To uparty jesteś 3 tyg to trochę czasu :) poprawie a teraz dodaj do kompilacji przekaźnik
https://gui-generic-builder.supla.io/
Awatar użytkownika
Goral64
Posty: 3131
Rejestracja: pt gru 27, 2019 6:22 pm
Lokalizacja: Żerniki Wrocławskie
Kontakt:

Kopiując błędy zwróćcie uwagę, aby wkleić także to co jest na końcu. Pozwoli to odtworzyć opcje, które mogły przyczynić się do wystąpienia błędu.
info_o_bledzie.jpg
info_o_bledzie.jpg (47.6 KiB) Przejrzano 947 razy
Widzimy się na Supla Offline Party Season 2 :D

Obrazek
Lucas_Alfa
Posty: 10
Rejestracja: sob lis 06, 2021 10:46 pm

krycha88 pisze: ndz lis 07, 2021 7:17 pm To uparty jesteś 3 tyg to trochę czasu :) poprawie a teraz dodaj do kompilacji przekaźnik
Wygenerowało się :-) Rozumiem, że problem polegał na tym, że przy wyborze RGBW, RGB, Dimmer automatycznie uaktywniała się funkcja przycisku, bo używany jest do konfiguracji urządzenia a ta funkcja wymagała współpracy z przekaźnikiem, którego w tym przypadku nie potrzeba w tym projekcie ale pozwala to ominąć problem z generowaniem skryptu?
Dzięki.
Goral64 pisze: ndz lis 07, 2021 8:43 pm Kopiując błędy zwróćcie uwagę, aby wkleić także to co jest na końcu. Pozwoli to odtworzyć opcje, które mogły przyczynić się do wystąpienia błędu.
info_o_bledzie.jpg
Nic więcej ponad to, co wkleiłem nie pojawiało się w komunikacie o błędzie. Nie wyglądało to tak, jak na twoim zrzucie.
Awatar użytkownika
Goral64
Posty: 3131
Rejestracja: pt gru 27, 2019 6:22 pm
Lokalizacja: Żerniki Wrocławskie
Kontakt:

Lucas_Alfa pisze: ndz lis 07, 2021 9:11 pm Nic więcej ponad to, co wkleiłem nie pojawiało się w komunikacie o błędzie. Nie wyglądało to tak, jak na twoim zrzucie.
Zgadza się, bo ja tę sekcję dodałem dopiero godzinę temu i od tego momentu będzie się dołączała do komunikatu o błędzie ;)
Widzimy się na Supla Offline Party Season 2 :D

Obrazek
Awatar użytkownika
Goral64
Posty: 3131
Rejestracja: pt gru 27, 2019 6:22 pm
Lokalizacja: Żerniki Wrocławskie
Kontakt:

Kod: Zaznacz cały

/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_9bf22669ea23e677e9503f938302268c/SuplaDeviceGUI.cpp: In function 'void Supla::GUI::addButton(uint8_t)':
/var/www/html/code/GUI-Generic_bv4.2_gv4.2.15_pl_9bf22669ea23e677e9503f938302268c/SuplaDeviceGUI.cpp:139:57: error: 'relay' was not declared in this scope; did you mean 'delay'?
  139 |     button->addAction(ConfigESP->getAction(pinButton), *relay[nr - 1], ConfigESP->getEvent(pinButton));
      |                                                         ^~~~~
      |                                                         delay
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
TEMPLATE_BOARD
OPTIONS -DATOMIC_FS_UPDATE -DBEARSSL_SSL_BASIC -DSUPLA_BUTTON -DSUPLA_CONFIG -DSUPLA_DS18B20 -DSUPLA_ENABLE_GUI -DSUPLA_OTA -DSUPLA_RGBW
Widzimy się na Supla Offline Party Season 2 :D

Obrazek
ODPOWIEDZ

Wróć do „GUI Generic”