Closed markus786 closed 6 months ago
I tried tonight and I have the same problem. I'm totally newbie with esp. Hope we will find a solution
Hmm sorry guys I must have messed up with the latest pr... I'll fix it today
Sorry guys I forgot to add PIN_THERM_ACTIVE_STATE on the public setup.h
. Now it should work.
Thanks for the work and the short delay for the resolution
Hello @raomin
it still doesn't work for me. Seems like you still need to include SAFETY_RELAY_ACTIVE_STATE and SG_RELAY_ACTIVE_STATE as you did it for PIN_THERM_ACTIVE_STATE !?
In file included from src/main.cpp:31:
include/mqtt.h: In function 'void callbackSafety(byte*, unsigned int)':
include/mqtt.h:212:37: error: 'SAFETY_RELAY_ACTIVE_STATE' was not declared in this scope
digitalWrite(SAFETY_RELAY_PIN, !SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
include/mqtt.h:212:37: note: suggested alternative: 'SG_RELAY_ACTIVE_STATE'
digitalWrite(SAFETY_RELAY_PIN, !SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
SG_RELAY_ACTIVE_STATE
include/mqtt.h:218:36: error: 'SAFETY_RELAY_ACTIVE_STATE' was not declared in this scope
digitalWrite(SAFETY_RELAY_PIN, SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
include/mqtt.h:218:36: note: suggested alternative: 'SG_RELAY_ACTIVE_STATE'
digitalWrite(SAFETY_RELAY_PIN, SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
SG_RELAY_ACTIVE_STATE
src/main.cpp: In function 'void setup()':
src/main.cpp:314:35: error: 'SAFETY_RELAY_ACTIVE_STATE' was not declared in this scope
digitalWrite(SAFETY_RELAY_PIN, !SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:314:35: note: suggested alternative: 'SG_RELAY_ACTIVE_STATE'
digitalWrite(SAFETY_RELAY_PIN, !SAFETY_RELAY_ACTIVE_STATE);
^~~~~~~~~~~~~~~~~~~~~~~~~
SG_RELAY_ACTIVE_STATE
*** [.pio\build\esp32\src\main.cpp.o] Error 1
================= [FAILED] Took 31.43 seconds =================
Environment Status Duration
------------- -------- ------------
esp32 FAILED 00:00:31.428
============ 1 failed, 0 succeeded in 00:00:31.428 ============
I have got build error on "SAFETY_RELAY_ACTIVE_STATE" variable, which is missing to be declared... Should it be declared in setup.h as well as you did for "PIN_THERM_ACTIVE_STATE" or this can be replaced by "SG_RELAY_ACTIVE_STATE" variable?
@raomin Can we expect an answer from you in here? Although the issue was closed, after you had declared PIN_THERM_ACTIVE_STATE, the problem with SAFETY_RELAY_ACTIVE_STATE and SG_RELAY_ACTIVE_STATE seems not solved yet...
I'm sorry, I missed this one yesterday but fixed it today. Can you cross check?
Thanks @raomin! Now it works.
But unfortunately I just found another issue while I was setting up my system: #418
Hello! I don't know what I'm doing wrong. I've followed the instructions from start to finish step by step twice now, but every time I try to upload the code to my WEMOS D1 Mini ESP32, I get the error described below. I've also tried selecting/including other environments and boards and even customizing the code a bit, but I can't get it fixed. Is there anyone who knows this failure and can help me solve it?