Stef Weicks hello Apparently we exceed th elenght of you discussion thread :) How

so i copied the checkwifitask and did the changes you wrote at least.

1.i start the controller connect to wifi and blynk…(still in SD-card mode) disconnected the wifi … started wifirouter again… and it doesnt reconnect …

2.i start the controller connect to wifi and blynk…switched to Artnet-Wifi… than disconnected the wifi … startet wifirouter again… and it connects!

@Stef_Weicks reading from SD and WiFi should not be linked together at all. I need to investigate further before being able to tell you why it is blocking while the SD reading is on running. I will recreate the set up to debug that.
Can you show me the serial output when trying to connect with SD-cars mode.

i tired now also delays with more time after the if(Screen==1)… still nochange…

[50931] Connecting to blynk-cloud.com:80
SD-Card on
20:15:32[51505] Ready (ping: 306ms).
SD-Card on
20:15:32Blynk ConnectedSD-Card on
RTC is older than compile time! (Updating DateTime)
20:15:33SD-Card on
RTC is older than compile time! (Updating DateTime)
20:15:33[53073]
[53082] Connecting to blynk-cloud.com:80
SD-Card

after 3 min it connects and stay connected
still in sd-cardmode i start artnetwifi with jinx … and after a few seconds blynk disconnect… i think that makes no sense?

@Stef_Weicks https://gist.github.com/hpwit/ea132157a373b4a4e53cbb2e12af2c98
just copy the Wifitask function and let me know

so i copied the checkwifitask .

1.i start the controller connect to wifi and blynk…(still in SD-card mode) disconnected the wifi … started wifirouter again… it connects to wifi but not to blynk

  1. in artnetwifi reconnects to wifi and blynk

@Stef_Weicks i have change approach try this
https://gist.github.com/hpwit/ea132157a373b4a4e53cbb2e12af2c98 sut the checkwifitask function

ok now i have to tell you something crazy!
its the same result as i wrote before! but now after it doesn´t connect i disconnect the RTC/SD-Card modul from the controller… and Blynk connected immediately! after this i connected the module again with the controller … and did a disconnect wifi and reconnect… and now there is no problem anymore… i can disconnect and connect … without problem .

but if i switch off the controller (from the power supply) and powered it up … and did the same procedure as before … the controller didnt reconnecting … only after i disconnect the RTC/SD-Modul and connect it back again to the controller … it connects like i described before!

@Stef_Weicks Humm super strange indeed so it’s not really soft only but hardware related. I could do the following before reconnecting Blynk I could stop the reading of the file via sd to see what happens

ok lets see if this does the trick

@Stef_Weicks
oki below line 22 add
bool isTryingToConnect=false;

change
if(Screen==1)
by
if( (Screen==1) && ! isTryingToConnect)

and copy the lastest version of checkwifitask

hm … didnt change something!
i tried also an other sd-card modul which has no RTC-modul built in … doesnt work either … thats really sad…

Can you show me the serial output? Of the process
Turn on WiFi router
Turn on the esp32 with sdcard
Turn of WiFi router wait
Turn on WiFi router
Thx

Switched on
blynk connect
RTC is older than compile time! (Updating DateTime) // running SD-Mode
21:47:32SD-Card //turend Wifi-off
on
21:47:37SD-Card
on
21:47:38SD-Card
on
21:47:38SD-Card
on
21:47:38SD-Card
on
Wifi Connected21:47:38SD-Card //turend Wifi on
on
Trying to connect Blynk
Blynk connected
RTC is older than compile time! (Updating DateTime)
21:47:45SD-Card
on
… connected disconected blynk a few times

Trying to connect Blynk
21:48:42Artnet-Wifi
on
21:48:43Artnet-Wifi
on
21:48:44Artnet-Wifi
on
21:49:03SD-Card
on
21:49:03SD-Card
on
21:49:03SD-Card
on
[100086] Connecting to blynk-cloud.com:80
21:49:03SD-Card
on

[100691] Ready (ping: 306ms).

Trying to connect Blynk
Blynk connected
RTC is older than compile time! (Updating DateTime)
21:49:05SD-Card
on
RTC is older than compile time! (Updating DateTime)
21:49:05SD-Card
on
RTC is older than compile time! (Updating DateTime)
21:49:05SD-Card
on

at least the controller is connected again… and staid connected … i still have to wait for it 2:30 min … but now it works :slight_smile:

wahah… it seems to work but … before i tried it only with the terminal… now i did it with the LED-Screen and it seems that artnetwifi now makes some connection problems… but i think for today we let it be… but thanks till now! its anyway a grate project!

meanwhile I have started to document it :wink:

@Stef_Weicks I have updated the function taskchwckwifi ca.mn you test

yes … one moment…

i see it jumps faster to artnet-wifi but than stucks there

no sorry… it seems similar to the code i tried before … needs some time to connect and sometimes it does not connect… but after i disconnect the modul it connects to blynk

i have also an other problem if i want to start the artnetwifi in the background it sends also data in the network (on the controller i am still on sd-mode)… and there seems to be an additional connection problem if i than switch to the artnetwifi there is no animation … ?!

sorry i have to go to bed … must get up very early… we write us tomorrow… thanks for helping with this project, good night :wink:

@Stef_Weicks no this is due to the fact that my if checks screen value and if I am trying to connect to Blynk if this test fails then it goes to artnetwifi
Humm Strange
Do this
If (artnet.read()==1)
It still does not work
Just replace by artnet.read();