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

OnConnected() is not triggered, yet isConnected() returns true and NewModule() hangs. #5

Open
ntsarb opened this issue Feb 14, 2021 · 0 comments

Comments

@ntsarb
Copy link

ntsarb commented Feb 14, 2021

Hi,

I tried out the library using the ESP8266 Fan Controller circuit and corresponding code. Here's the issue:

After connect() returns, the callback function defined by onConnected() is not invoked, yet isConnected() returns true. But when NewModule() is invoked, it hangs. The output on the serial console follows.

Do other people have similar issues? Is it a server-side issue or a library issue?

Thank you,
Nikos

20:52:10.643 ->
20:52:10.643 -> D0: 16
20:52:10.643 -> D1: 5
20:52:10.643 -> D2: 4
20:52:10.643 -> D3: 0
20:52:10.643 -> D4: 2
20:52:10.643 -> D5: 14
20:52:10.643 -> D6: 12
20:52:10.643 -> D7: 13
20:52:10.745 -> Connecting to AP..............
20:52:18.563 -> WiFi connected
20:52:18.563 -> IP address: 192.168.1.122
20:52:18.563 -> ModuleId: 0
20:52:18.563 -> Connecting to MQTT server
20:52:18.563 -> MQTT client id:24:a1:60:30:2c:44-98
20:52:18.563 -> connect mqtt...
20:52:19.077 -> create new module

@ntsarb ntsarb changed the title myConnectedCb is not triggered, yet NewModuleCb is invoked and hangs OnConnected() is not triggered, yet isConnected() returns true and NewModule() hangs. Feb 14, 2021
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

1 participant