Characterizing Middleware Mechanisms for Future Sensor Networks