I’d not know when this kind of code did build in the past, but currently the Blynk library only seems to feature two overloads for BlynkParticle.begin()
void begin(IPAddress a, uint16_t p);
// and
void begin(const char* d, uint16_t p);
You may either need to backtrack to a version that did support your kind of overload, or just adopt the new calling scheme.
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 think the problem is not the local Blynk server but the photon. If I understand it correctly a photon automatically wants to connect to the cloud. As long as it has no connection it will not run the flashed program. And since I want my local Blynk server to work without connection to the cloud the photon can’t connect to the cloud.
I tried adding:
SYSTEM_MODE(MANUAL);
and SYSTEM_MODE(SEMI_AUTOMATIC);
But this does not seem to work. Is it possible to let the photon run a flashed program without having to be connected to the cloud?
This part is not correct. You have to take some control over the WiFi connection at least partially if you don't want to use the Particle cloud, but it works fine.
I think that statement was meant as description of the state before employing SYSTEM_THREAD(MANUAL) (so in AUTOMATIC mode) - then it’s correct.
But as already pointed out WiFi.connect() would be the way to manually initiate the WiFi connection.
You also need to make sure to have WiFi.read() before proceding with Blynk.