Enviar por SMS: Adaptive Middleware for the Internet of Things