TinyLime: Bridging Mobile and Sensor Networks through Middleware