Comments (2)
Hi,
I think it could be possible to keep the connection open if the bridge supports it. The HTTP/1.0 requests used are not persistent by default.
That would require some additional logic and testing, because we also need to check for timeouts and closed connections.
from hueplusplus.
@EmilyBjoerk Looking at the official philips hue forum I found a thread about keep-alive
and there the development team states The bridge doesn't support "Connection: keep-alive".
.
So even though I would also advocate reusing the connection it is just not supported yet and if it will in future it will probably only work with newer models of the base station.
Maybe it is still possible to reuse the socket object somehow, which would at least get rid of some overhead.
from hueplusplus.
Related Issues (20)
- On Windows 10 (current version) you cannot close the socket and continue to read data HOT 9
- Visual Studio generates warnings on 'C' style enum definitions. Maybe new C++ enum class definitions would be better in the long term. HOT 1
- Add Philips LCA003 and LCB001 and issues with color conversion HOT 19
- Missing support for new Bluetooth (Gen4) lights HOT 4
- Support Hue Entertainment API HOT 8
- Add support for 440400982841 and LCA001 HOT 1
- Bridge reconnect HOT 3
- Improving useful command rate of hueplusplus HOT 3
- Hue bridge not responding to GET /description.xml HOT 8
- Compile errors with clang (-Werror) HOT 5
- Getting errors messages when I try and run make(linux) HOT 2
- I'm getting a error when running code snippet HOT 9
- New philips hue api v2 HOT 2
- How do you build for windows. HOT 1
- Entertainment Group creation fails with API error HOT 3
- Unhandled exception HOT 2
- json.exception.parse_error.101 when getting access to lights HOT 5
- Version 3.4.0 of the mbedtls crypto library HOT 2
- [FR] Allow linking against external mbedtsl HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hueplusplus.