Closed iconnor closed 2 years ago
Sorry for the late answer, and thx for your contribution.
One note: today the platform feature (with auto-discovery) is not tested and should be setup with care. This will probably require some work to fix. Also there is probably a misundertsanding in the setup example you sent. I guess one will create either an explicit list of accessories without a platform, or only a platform without accessories. How are you currently using it ?
I was initially getting errors.
I added logging of the error (e.message) which was Connection refused: Not authorized.
After some debugging, I saw that needed to add the URL (and username/password) not just to the accessory section but also to the platform.
The onConnect's config from the constructor is called both from the accessory and at the platform level during boot up.