aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
978 stars 625 forks source link

Connectivity preference #1793

Closed sumanclimote closed 2 years ago

sumanclimote commented 2 years ago

Does the SDK have a means of have multiple RF connectivity for data routing and means to choose the best suitable one if the performance is degraded?

I mean if we have WIFI and GPRS connectivity, do we have a means to choose WIFI as default if there is a performance issue the IOT core shall choose to alternative communication channel till the first (preferred) channel is performing better.

alfred2g commented 2 years ago

I Don’t see any baked in functionality to do what you want. you could create you own custom sockets transport layer which tracks performance, periodically checking if session should switch to GPRS/wifi based on whatever criteria. Or you could just have two sockets open simultaneously but you’d have to avoid namespace collisions.

sumanclimote commented 2 years ago

Thanks for sharing it.