Multiple AWS_IOT_BROKER_HOST_NAME

I have a IoT design that needs to support multiple AWS service endpoints, depending on which region the device is operating or which SIM is being used.  For example, ao3k4sem2hoef-ats.iot.ca-central-1.amazonaws.com or ao3k4sem2hoef-ats.iot.ap-east-1.amazonaws.com, etc.  The design works fine when I have the endpoint preset with CONFIG_AWS_IOT_BROKER_HOST_NAME in the prj.conf.  Is it possible to have an endpoint picked automatically based on a parameter found during run time?  

Thank you.

Parents Reply Children
  • Ok.  Let me give that a try.  I also found AT%XEPCO=0 to do CONFIG_PDN_LEGACY_PCO=y.  Is that correct?  Do I still need to override the defaults?

    Thank you.

  • flau said:
    I also found AT%XEPCO=0 to do CONFIG_PDN_LEGACY_PCO=y.  Is that correct?

    I think that it will be the same for the legacy yes. But I am not 100% sure so I advise that you try.

    In general, all these configs are in the end just commands that are being sent to the modem, so as long as the modem will let you send new commands to undo that, you should be able to do these things dynamically.

    and by the way, for the last thing, devs add:

    "

    Yes, it's possible to configure the default PDN during runtime, but only when modem is in offline or minimal functionality mode, i.e. +CFUN=4 or +CFUN=0.

    "

Related