Open craigmulligan opened 7 years ago
This was tested with a sensor tag.
This also happens to me when reading from dummy device. And it is very likely to occur when you have a nodered workflow. I will post the exception next time it happens.
@rosogon Is this still happening? I think it was due to the D-Bus instability, already solved.
I would say it is fixed, yes.
I've encountered some peculiarities when attempting to read from devices.
Case 1
Basically if you register a device and try read from it before it's registered, it throws an exception and then doesn't recover from. I've encountered this when running the UI.
The easiest way to test is run the agile-ui, register a device and then quickly navigate to the device page.
Case 2
If a device is registered (but not currently connected) and you issue a connection
/devices/<id>/connection
.It then throws
In this case it's also unable to delete and re-register the device so have to restart the server.
I register the device and then try register and then subscribe instead of just reading from the device.
I've done a some testing and the only way I can get to work fairly reliably is to do:
As far as I know you should be able to do a single read without subscribing right?
Could someone clarify the possible work flows and expected behaviour for connecting and reading from a device?