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

Aah … I’ll do it right now! i thought something in that direction … i already searched the old file for "running " lol

ok now its working better…

there is one thing i don´t know why it is …
i start the controller … connect to wifi and blynk… start the connection to jinx and now i want to switch with the blynk-app to artnetwifi… the blynk connection is lost and never get it again. i have to disconnect all connection . and start it new … but if i at first start artnetwifi with the blynk-app and then do the connection with jinx it works… hm

@Stef_Weicks after line 375 could you add Blynk.disconnect();

didn´t work. but if blynk is not connected does it make sense to disconnect again?

if(!Blynk.connected())
{ Blynk.disconnect();

@Stef_Weicks it was just to ensure that all the internal variables of Blynk were correctly reset.
To be sure if you turn on jinx and the WiFi. And then turn on the esp
It connects to the WiFi and to Blynk but as soon as you switch to artnet WiFi Blynk disconnects.
Question : does the artnetwifi works ?

ah i understand!!
yes artnetwifi works… but only as i said … first switch with the app to artnetwifi and than connect controller to jinx

but if we don´t get it, its not as important… the thing is working fine except this one thing!!! :slight_smile:

@Stef_Weicks I think to have a deeper look in the connectivity method of Blynk into more details

no problem … i am very happy with this little artwork :slight_smile:

now i will try to add the file switch for the sd-card… you said i should do this over an array i think you mean to read out the files and save them in an array? and than if switch pressed …File entry = dir.openNextFile(); or so… i have to read me into this

@Stef_Weicks ahah that would be too easy like this lol

but this code should do the trick

i wrote it from head without testing neither compiling
create a new variable in you blink in virtual pin 3
if you send 1 it should go to the next file

wow … thats so cool! Thanx again… i think i will do this with more panels hehehe :smiley:

i did now 2 more animations… do you use the code for artnet write to sd card too?
i think two little things would be nice there:
if artnet.read > start record animation
if artnet.stop > stop animation recording
and record more files on one card

maybe you like to help me there

@Stef_Weicks it worked first go ??!!
Ahah cool i did not have the means to compile or test it ;).
Recording and displaying can be done but it could screw up the animation. This is to be tried.
Yes I use it except that to record I always need to setup me boards with the sd card cause I do not have shield for the devkit :wink: I could record on the other one still lol.

@Stef_Weicks
Let’s say that you give a try to write that piece of code and I will correct it.
The best thing to do is to add a button in blynk that will send the command stop/start recording. :wink:

yes only 1 thing was left … you wrote System.println … instead of Serial.println … but all other was just fine… i think for you programming is like writing sentences :wink:

ah ok … but that would greatly simplify the whole thing

I can not promise that i finish this today … need a little bit more time to write my story :wink:
But of course i try it !!

@Stef_Weicks couple of lines of codes will do the trick. Just go for it.

yes i will :wink:

i tested the artnetwifi+sdread program now with 3 different wifi-routers… and with only one its working as i thought it should…(connects although if jinx is switched on at first and than switching with the app to artnetwifi).This is really funny, that this depend on the router?!
i will change the first two outputs maybe to avoide the artifacts/flickers which are from time to time (especially while dis/connections).

@Stef_Weicks I have only one router so I cannot really tell you anything ;). But I don’t see why it should not work with other router unless udp is deactivated on those routers ( udp is the protocol used for artnet)

yes i understand … but the iphone supports udp … so that is strange.

i did now a WiFi.config(local_ip, gateway_ip, subnet_ip);
before and after wifi.begin.

its only working after wifi.begin, but very very slow/shutter animations… in sd and wifi mode.

maybe you know what could be the fault for this?