Skip to content

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

@ntsarb

Description

@ntsarb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions