WebThingsIO / thing-url-adapter

Proxy adapter for Web Thing API endpoints
Mozilla Public License 2.0
22 stars 18 forks source link

Parallel prop loading can overwhelm device #106

Closed freaktechnik closed 2 years ago

freaktechnik commented 3 years ago

I made an arduino based webthing (using the webthing-arduino lib). The adapter fails to poll it, usually failing to read a property. The adapter currently makes a request to every property (why not use the properties endpoint?) "at once". With a low powered device, that might be too many requests to handle before they timeout with how fast the event loop spins.

Example error:

2021-07-23 23:53:18.127 INFO   : thing-url-adapter: Failed to poll device: FetchError: request to http://192.168.50.37/things/senseBox/properties/tempIn failed, reason: read ECONNRESET