We are testing the SensorTag and found and issue which can probably only be solved by changing the SensorTag software itself.
The state of the 2 buttons can only be aquired with a notification.
This notification is only sent when the state of a button changes!
Because of this, the state after connecting to a SensorTag is wrong whenever a button is already pressed.
Since you aren't allowed to read the buttons state, there is no way to solve this.
Any suggestions??