1. A wireless network comprising: a control node; a plurality of device nodes in wireless communication with the control node, each of the device nodes having a wireless communication path to the control node that is either a direct path or an indirect path through one or more intermediate device nodes serving as relays, each device node having a corresponding device comprising an embedded microcontroller with a flash memory; and wherein the control node transmits a microcontroller flash memory update to the plurality of device nodes over the wireless network, the microcontroller flash memory update being first transmitted from the control node to each device node with a direct communication path to the control node, the microcontroller flash memory update being then relayed by one or more device nodes to other device nodes until the microcontroller flash memory update are transmitted to each device node in the wireless network.