Resilient Communications Middleware For Iot Data Exchange