Closed durielz closed 7 years ago
What softap are you using just so we have all the details?
https://github.com/spark/softap-setup-js but it's the same if you do it from the cli
Ok, cool.
This should be a pretty easy fix then.
@durielz Try new version, a device should reconnect after softap claiming now.
yes your solution work. I found another one without having to disconnect the device:
in DeviceServer.js in function _onDeviceSubscribe if I move all code except
await device.hasStatus(DEVICE_STATUS_MAP.READY);
in the
process.nextTick(()=> {
it works as well but I don't know if it is the correct way...
@antonpuko - check both and see which is cleaner
@durielz ok, removing additional disconnect() is great, thanks.
Hi guys, after the claim process with softap the device is claimed successfully but for all the subscribe requests i get:
device wasnt subscribed to event: the device is unclaimed
It looks like the subscribe requests are processed before the claim...