If you close the alarm by using the button in the Alarm and Event Viewer sample does it work then?
If this works the sample might hold a clue even as the sample does not use protocol. If this works you can either look at the code of the sample or trace the communication of the sample and compare to your own code.