A wireless sensor network comprises a plurality of nodes that communicate
over wireless communication links. At least one of the plurality of nodes
receives sensor data from a sensor. A subscription for an event of
interest occurring in the wireless sensor network is installed in the
wireless sensor network. A publisher node included in the plurality of
nodes determines when the event of interest occurs and, when the event of
interest occurs, publishes data related to the event of interest for a
subscriber node included in the plurality of nodes.