Skip to content

Motor control NodeMCU drops out of WiFi #25

Description

@frederikheld

If the train is powered on for a certain time, the NodeMCU is not available via MQTT anymore as it drops out form WiFi. This can happen after an hour, after a couple of hours, sometimes not at all through the whole day.

You can mitigate the bug by resetting the NodeMCU or by unpowering the train and then powering up again.

Possible Reasons

Arduino Sketch has memory leaks

  • check if the dropout is related to the number of MQTT messages sent to the NodeMCU.

I read about ways the library can leak memory in https://github.com/knolleary/pubsubclient.

I would appreciate help on that as I'm not firm with memory management in C

Other possible issues with the Arduino Sketch

NodeMCU is overheated

With all the electronis inside, the train gets pretty warm. Active ventilation might fix the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions