What do you get if you use a web browser to access: HTTP://arduino.local/data/get
(of course, replace arduino.local as needed with your Yun's address)
That should list the current state of all values that have been put() to the bridge. Is that value changing? That would be a good way to tell if the issue is in the sketch or the Linux code.