Skip to content

HelloWorld example disconnecting from WiFi #3

@Alasknnj

Description

@Alasknnj

Library versions:

  • ESP8266MQTTMesh version: 0.8.1
  • AsyncMQTTClient version: 0.8.1
  • ESPAsyncTCP version: 1.0.1
  • ESP8266 Core version: 1.3.0
  • Platformio version : 3.0.0

Description
I've been trying to get the HelloWorld example to work, only 1 node, and for that I have a mosquitto broker on my PC.

The example works fine up to the connection to the mqtt broker. Right after connecting, the subscription to IN_TOPIC and the publishings to OUT_TOPIC, executed at onMqttConnect() as well as the timed publishings are not making it to the broker. Some seconds later onWifiDisconnect() is called. After that it's just a cycle of connecting to the broker and disconnecting from the WiFi.

What I could figure out was that the setup_AP() call is causing this, more specifically the lines for setting up the node as Access point and Station.

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