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

Calling setProperty in certain conditions from Node class derived from HomieNode breaks MQTT Client #285

Closed
camilorodegheri opened this issue Jan 9, 2017 · 1 comment
Labels

Comments

@camilorodegheri
Copy link

Hi,

I'm using the latest develop commit (7dc2dd5) and when calling setProperty from a derived class on onReadyToOperate in the following conditions is causing MQTT Client to break, before sending any packet to the server.

Tested conditions

  1. Calling it twice from the same node
    void ANode::onReadyToOperate() { setProperty("enable").send("true"); setProperty("enable").send("true"); }

  2. Calling from two different nodes, but using the same property name
    void BNode::onReadyToOperate() { setProperty("enable").send("true"); }
    void CNode::onReadyToOperate() { setProperty("enable").send("true"); }

Is this a limitation or a bug? Or am I using it wrong? Maybe is there some issue with the way I'm referencing the function?

@marvinroger marvinroger added the bug label Feb 7, 2017
@marvinroger
Copy link
Member

Please update to the latest AsyncMqttClient (v0.7.0).

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

No branches or pull requests

2 participants