Thanks for the quick response. Still the same error:
no matching function for call to ‘BlynkParticle::begin(char [33], char [19], char [10], const char [14], int)’
When I look at BlynkParticle.begin() I see:
void begin(IPAddress a, uint16_t p);
// and
void begin(const char* d, uint16_t p);
So it looks like I can only input the IP-address and the port. But how do I add my auth, ssid and pass? The strange thing is that the code worked before and is also mentioned at the github-page for installing and using the local server:
Last ‘blind shot’: define variable char server[]="your.ip.goes.here" and call the begin with server variable defined. If it will not work then I recommend checking the acceptable constructor of begin as defined in library.
Edit: oh, you checked it already… And have you tried with Blynk.config(auth, server, port)
But now the particle photon will only work when my local Blynk server is connected to the internet. The great thing before that if you used the local Blynk server no internet is needed (unless you use cloud-services ofcourse).
Can this be solved so that the local Blynk server can be used without internet-connection?
?? I don’t know why the internet connection is required. Although I’m not using PArticle photon, I have everything defined the same way (the IP in local net and the 8080 port) and I don’t need the internet connection. Maybe you should check your network settings? Maybe it is the photon’s IP address that should be statically assigned? (Some DNS issue?). Or the App is connected through domain name, not the local IP.
It could be a photon-problem. When disconnect the internetcable form my wifi router I can use the app for about 15 seconds. Than the photon complains that it is not connected to the cloud and the app stops working (the device also disappears in the app).
When I reconnect the internet-cable the photon reconnects with the cloud and the apps works fine again. Seems like a photon-problem.
Other question, so the blynk local server can work without internet. In the future I’ll be using an arduino MKR1000. I assume the problem won’t occur then?