Hi,
I think I’ve discovered an issue with the Blynk local server getting dashboards confused and displaying the wrong info to the wrong dashboard.
I’m running Blynk local server v0.7.3 on my Linux box.
I have written an program, running on the same machine, that will bridge my Panstamp network to the Blynk local server. To the Blynk server it appears as a generic hardware device, and uses the same authentication token as one of the dashboards. I’ve configured it to send a battery voltage to the Blynk server on pin v1. On my IOS device I have the Panstamp dashboard that has the same authentication token it displays the voltage on a gauge.
I have also created another program, running on the same machine, which bridges my ls30 alarm system to the Blynk local server. Again it appears to the Blynk server as a generic hardware device, although it is using a different authentication token. The Alarm dashboard is a bunch of leds that display the open/close state of the sensors. I have a test sensor sending it’s state on pin v1, so the led on the dashboard changes state to match the sensor.
If I only have one of my programs running, everything works fine and the dashboards behave as expected.
If I have both of my programs running then the server doesn’t seem able to separate the pins and the dashboard will display whatever was the last value to arrive on the v1 pin, regardless of which program/hardware sent it.
For example, if I have the Alarm dashboard running, then when I open the sensor (on v1) the led lights on the IOS device, when I close the sensor the led goes out. If my Panstamp hardware then sends a voltage of 1.3 (on v1) the led will light again.
This only seems to be an issue for the dashboard on the IOS device. When I check the data files, the server is managing to keep the two v1 pins separate, so I have one file that is keeping all the voltages from the Panstamp hardware and I have a different file that has the values from the Alarm hardware.
I would normally thing that I have the authentication tokens confused, but I’ve check the sockets and the tokens from the programs are different and the values are being sent on different sockets/ports, although on the same machine. Also the fact that it is storing the data to different data files indicates to me that the server is able to keep things separate for the data recording code.
Any suggestions on where to go from here, or what I should be capturing?
BTW. I’ve discovered that you can only have one dashboard active at a time :-(. Also the logging on the server lets me know that a signal has arrived (ping, hardware etc) but doesn’t give an indication which hardware/socket sent the signal.
Thanks