-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
I can't get device name while connecting to MQTT for some reason. #46
Comments
Hi @peterwilli , |
Peter, I don't have the answer but I have a suspicion. In running into a different issue having to do with particle and also using the library. Which so far has been a pretty well written library. I think the issue has to do with the need to call Particle.process() when you have system threading enabled. There's is a while true loop in the mqtt connect that I think needs particle.process in it to function properly when the connection blocks for too long. Work in progress... Andy |
I've found out about this and explained it further here: https://community.particle.io/t/photon-device-name-not-returning-anymore/28088/4
I'm using the following code to connect to mqtt:
For some reason, when I am running this code in the loop Particle's
Particle.publish("spark/device/name");
does not reply anymore.The text was updated successfully, but these errors were encountered: