I have installed a local server on a raspberry pi and installed and old version of the Blynk app on my Android phone. The raspberry pi will be acting as the server and will have its GPIO pins controlled. It will basically function the same as two separate devices. It appears as though the initial steps are working until it comes time to link the Android app with the Blynk project. When I SSH in and run the " blink-client " command, I get this output:
Does anyone know where to change the blynk-cloud address to the address of my local server? It looks like that’s all it needs to connect and start working.
I’m confused by how far you progressed through the instructions in that video before you encountered a problem.
I’m also confused by your comment about…
because the ssh commands have nothing to do with the app.
When entering the command “blynk-client [authkey]”, isn’t that taking the authentication key from the app for the specific project and attaching it to the server running on the raspberry pi so that the two installations can communicate?
As far as getting stuck anywhere while following the video, I don’t remember, but everything seems to function the way it does in the video, except that it appears as though the Blynk server is trying to connect to blynk-cloud.com on port 443 and I want it to use a local address where I have hosted my own server.
Yes it is. The confusion arose from your terminology, as although you may be getting the Auth token from the app, it actually comes from the server, and it doesn’t link the app and the server, it links the server and the client.
It’s not the Blynk server that’s attempting to connect to the now non-existent legacy cloud server, it’s the Blynk node.js client that is trying to connect to the Legacy cloud server rather than your Legacy Local server.
I suspect that you will need to edit the Blynk.js file that’s installed on your client device (which in your case is also your server) and change lines 127 and 128 to point to the IP address of your local server, and to use the appropriate port (8080 or 9443 by default)…