I’m trying to get my raspberry Pi 2 send data to app. Here is the list of steps that I did:
- Setup local blynk server (it works, I was able to connect from android app, added value displays)
- Installed blynk-library, and it ables to connect using ./blynk with parameters
- Customised https://github.com/blynkkk/blynk-library/blob/master/scripts/blynk_ctrl.py and configured there my local server and port
- Added ‘Value display’ in the android app, attached it to the virtual pin 1, set update interval to ‘PUSH’
- Run script python “python blynk_ctrl.py --token=mytoken -vw 1 100”
After that I see log records in blynk.log on my server:
04:57:24.186 TRACE - Incoming LoginMessage{id=2, command=LOGIN, length=32, body=‘my_token’}
04:57:24.188 INFO - vadim.kirilyuk@gmail.com hardware joined.
04:57:24.242 TRACE - Incoming BridgeMessage{id=3, command=BRIDGE, length=37, body=‘64i4e77afc0a157417588d9eb88ba45e323’}
04:57:24.245 TRACE - Incoming BridgeMessage{id=4, command=BRIDGE, length=11, body=‘64vw1100’}
04:57:24.249 TRACE - Hardware channel disconnect.
04:57:24.250 TRACE - Sending ResponseMessage{id=0, command=RESPONSE, responseCode=DEVICE_WENT_OFFLINE} to [id: 0x6f4013b1, /client_ip:37971 => /server_ip:11443]
On the android app value display was’t changed, only see message in the bottom of screen “Your raspberry 2 was disconect” when run script on raspberry.
Where is my fault there?