C++ or python (on RPi)

And my “final” :stuck_out_tongue: results…

Apparently I needed to run python2.7 in order to get mine to work from the script file in a normal CLI window…

pi@raspberrypi:~ $ cd /home/pi/Blynk_Python
pi@raspberrypi:~/Blynk_Python $ python2.7 UpTimeTest.py
TCP: Connecting to blynk-cloud.com:80
Blynk connection successful, authenticating...
Access granted, happy Blynking!
Current V1 value: 1
Current V1 value: 0
Current V1 value: 1
Current V1 value: 0

Now onto trying to set it up for my Local Server… meanwhile this little python2.7 bit should have you up and running :wink:

And for Local Server, edit the BlynkLib.py file and find this line about midway down…

class Blynk:
    def __init__(self, token, server='blynk-cloud.com', port=None, connect=True, ssl=False):

…edit IP and port acordingly…

class Blynk:
    def __init__(self, token, server='xxx.xxx.xxx.xxx', port=8080, connect=True, ssl=False):