This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

LTE connect blocking while connecting to network

Hi,

I am developing an application based on the aws_iot sample which all works fine.

The application captures data from a sensor and publishes it to AWS.

However, during the connection phase which can be several minutes or when the connection is dropped the connect/ reconnect

blocks the work queue items and so no date is recorded during this time.

Can you explain how to work around this issue?

Thanks

Parents Reply Children
  • Hi Markus,

    I hope I haven't confused the issue here.

    There is no problem connecting to the network generally and I haven't changed anything about k_sem_take or k_sem_give in the the lines cited.

    I have added additional items to the work queue which is used for publishing to the AWS shadow and these work fine too.

    My problem is that while connecting to the network I also want to read the data from a sensor and store it in memory while the connection thread is running. This can't  happen at the moment.

    The idea being that I can record measurements while connecting and publish them when conneced.

    Thanks

    Dermot

Related