AWS MQTT IP connect with domain fallback

Hi,

I wonder if there is a smart and easy way to implement a fallback if I use the MQTT connection with a static IP. What I want is if the IP fails to connect it tries again with the defined domain (dns).

Is there already a example for this or a plan for this feature?

best regards 

daniel

Parents
  • Hi Daniel,

    Yes, it is not easy for was it lib, because it assumes you only connect with one aws iot sever.

    Also it is less chance that the AWS IoT server will have a connection issue. If you do need one solution for a backup server, you may need to modify and maintain a custom aws_iot library. You can refer to the open-source nrf\subsys\net\lib\aws_iot\src\aws_iot.c as reference.

    Best regards,

    Charlie

Reply
  • Hi Daniel,

    Yes, it is not easy for was it lib, because it assumes you only connect with one aws iot sever.

    Also it is less chance that the AWS IoT server will have a connection issue. If you do need one solution for a backup server, you may need to modify and maintain a custom aws_iot library. You can refer to the open-source nrf\subsys\net\lib\aws_iot\src\aws_iot.c as reference.

    Best regards,

    Charlie

Children
No Data
Related