@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?
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
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
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
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!
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 … ?!
@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();