ESP32S2 problem

Drag3t
Posty: 11
Rejestracja: czw sty 04, 2018 9:37 am

Witam,
taki błąd dostałem przy generowaniu softu dla ESP32S2,
rzućcie okiem :)
Błąd generowania

/var/www/html/code/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580.ino: In function 'void setup()':
/var/www/html/code/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580.ino:311:102: error: 'Serial2' was not declared in this scope
PZEMv3 = new Supla::Sensor::ThreePhasePZEMv3(&Serial, pinRX1, pinTX1, &Serial1, pinRX2, pinTX2, &Serial2, pinRX3, pinTX3);
^~~~~~~
/var/www/html/code/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580.ino:311:102: note: suggested alternative: 'Serial1'
PZEMv3 = new Supla::Sensor::ThreePhasePZEMv3(&Serial, pinRX1, pinTX1, &Serial1, pinRX2, pinTX2, &Serial2, pinRX3, pinTX3);
^~~~~~~
Serial1
/var/www/html/code/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580.ino:318:102: error: 'Serial2' was not declared in this scope
PZEMv3 = new Supla::Sensor::ThreePhasePZEMv3(&Serial, pinRX1, pinTX1, &Serial1, pinRX1, pinTX2, &Serial2, pinRX1, pinTX3);
^~~~~~~
/var/www/html/code/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580/GUI-Generic_bv4.13_gv4.13.26_pl_45fb51381acf7d9a6e086b065ab93580.ino:318:102: note: suggested alternative: 'Serial1'
PZEMv3 = new Supla::Sensor::ThreePhasePZEMv3(&Serial, pinRX1, pinTX1, &Serial1, pinRX1, pinTX2, &Serial2, pinRX1, pinTX3);
^~~~~~~
Serial1

Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp32:esp32:esp32s2:PartitionScheme=min_spiffs
BOARD_NAME
TEMPLATE_BOARD
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DSUPLA_ACTION_TRIGGER -DSUPLA_BH1750 -DSUPLA_BME280 -DSUPLA_BMP280 -DSUPLA_BUTTON -DSUPLA_CONDITIONS -DSUPLA_CONFIG
-DSUPLA_DIRECT_LINKS -DSUPLA_DIRECT_LINKS_SENSOR_THERMOMETR -DSUPLA_DS18B20 -DSUPLA_ENABLE_GUI -DSUPLA_HLW8012 -DSUPLA_IMPULSE_COUNTER -DSUPLA_LIMIT_SWITCH
-DSUPLA_OLED -DSUPLA_OTA -DSUPLA_PUSHOVER -DSUPLA_PZEM_V_3 -DSUPLA_RELAY -DSUPLA_RGBW -DSUPLA_ROLLERSHUTTER -DSUPLA_SHT3x
Wybrałem opcje jak w załącznikach.
Załączniki
3.png
3.png (29.07 KiB) Przejrzano 358 razy
2.png
2.png (44.68 KiB) Przejrzano 358 razy
1.png
1.png (52.94 KiB) Przejrzano 358 razy
ODPOWIEDZ

Wróć do „GUI Generic”