Patent ID: 7970871

Claim:
A wireless sensor network, comprising: a first node configured to receive a first script defining a new behavior for the network, the first node configured to wirelessly transmit the first script via the network; and a plurality of sensor nodes including at least a first sensor node and a second sensor node, each of the sensor nodes having at least one sensor, wherein the first sensor node is configured to receive the first script and to store event data indicative of an event for which the first script is to be invoked, the first sensor node configured to perform a comparison between the event data and sensor data from a sensor of the first sensor node and to invoke the first script based on the comparison thereby implementing the new behavior, wherein the second sensor node is configured to transmit a remote procedure call identifying the first script through the network to the first sensor node, and wherein the first sensor node is configured to invoke the first script in response to the remote procedure call.