Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscriptions - delayed #13

Open
CameronTurner opened this issue Mar 19, 2018 · 1 comment
Open

Subscriptions - delayed #13

CameronTurner opened this issue Mar 19, 2018 · 1 comment

Comments

@CameronTurner
Copy link

I find when using the below config, the particle device is:

  • More stable (less restarts/lockups resulting in the watchdog kicking in)
  • Can flash OTA (would previously not be able to complete an OTA flash)

However, the downside appears to be very delayed (or lost messages) from subscriptions.

  • Some subscription messages are lost
  • Some subscription messages arrive 3-4 minutes later.

Is there a way to separate out receiving any publish events from the other activities that might be 'blocking' OTA capabilities in the below?

Code

MQTT client("xxxxxxxx.iot.ap-southeast-2.amazonaws.com", 8883, 360, callback);

//The below code is run every 120 seconds
            if (client.isConnected())
             {
                 client.loop();
             }
             else
             {
                 if(awsDisconnect == 0)
                 {
                   connectToAwsMqtt("connect");
                 }
             }
 
@hirotakaster
Copy link
Owner

check your firmware source code about the OTA(0.6.x/0.7.x/0.8.x) and network packet with WireShark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants