Grizzelbee / ioBroker.robonect

ioBroker.robonect is an ioBroker adapter for your Robonect HX enabled lawn mower.
MIT License
0 stars 3 forks source link

error message "undefined" #36

Closed SebastianSchultz closed 2 months ago

SebastianSchultz commented 1 year ago

Describe the bug
Sporadically I get the error message "undefined" in the ioBroker log.

To Reproduce
Sorry, I have no method to reproduce the error. I think it is produced by the status or info requests.

Expected behavior
No error message :)

Screenshots & Logfiles
iobroker.log

Versions:

Additional context
None

Grizzelbee commented 1 year ago

Okay - strange. thank you very much for the logfile . Sometimes the polling of battery data fails and sometimes it works. When it fails it results in this undefined. I need to take a deeper look into it.

Please be patient - it may take some weeks, since I'm currently unavailable.

EDIT: Just took a quick look into the code and have a first guess: May you please check whether the undefined always and only happens when initializing the adapter? In other words: when you start it.

SebastianSchultz commented 12 months ago

No the message appears when I activate the Status query for the battery.

Grizzelbee commented 12 months ago

Okay - I think I didn't made myself clear enough. When you change the config of the adapter it gets restarted by ioBroker to initialize newly. This is what I ment in my last post. And when I read the log correctly this "undefined" error only happens on the first run after each restart, from the second run/poll intervall on it gets the battery state correctly.

And I asked you to proof and corfirm or deny this theory.

SebastianSchultz commented 12 months ago

Yes your rights. The message appears every time on adapter start.