pico + WIZ550io + mqtt connection issue #994
Replies: 3 comments
-
Posted at 2018-07-23 by d0773d I figured this out. setIP() returns true when it successfully finishes. Updated onInit code:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-07-23 by @gfwilliams Great! I think one issue you have might be that That's definitely an issue, as it should use the same form as other networking APIs to avoid this kind of confusion. I just filed an issue to get it fixed. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-07-23 by d0773d @gordon I think I meant to say setIP instead of getIP in my original post. I would like to execute mqttConnect(); after espruino successfully connects to the network via a callback. Implementing a callback on both setIP and getIP would be great. Thank you for submitting an issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-07-22 by d0773d
I've been attempting to connect to mqtt using the WIZ550io instead of wifi without success. My goal is to use a pico + WIZ550io + mqtt to trigger relays. I doubled checked if my pico has an IP address by typing eth.getIP() into the IDE console and I get the following result:
I'm following this guide: http://www.espruino.com/Home+Automation
I think my issue is with in my onInit function. I'm trying to call mqttConnect(); on a successful
, but I don't think
is getting called:
code:
Beta Was this translation helpful? Give feedback.
All reactions