79450586

Date: 2025-02-19 07:53:54
Score: 4
Natty:
Report link

After a day on it, I just noticed this was only happening when debugging, when in production there is no problem anymore.

I suspect that due to some bugs later in the code, the script was exiting before publishing on the MQTT, although I am curious as to why a breakpoint did not make the eventBus publish?

A good tip in such a situation is to place a good old setTimeout for 2 second to check if it is the cause.

Hope that helps if other people have the same issue.

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sciid