bw-hro / webthing-cpp Goto Github PK
View Code? Open in Web Editor NEWWebthing-CPP is a modern CPP/C++17 implementation of the WebThings API.
License: Other
Webthing-CPP is a modern CPP/C++17 implementation of the WebThings API.
License: Other
The /actions and /events endpoints must also response with Content-Type application/json and allow CORS
From all information available about the thing(s) an OpenAPI specification could be generated and hosted.
https://playground.thingweb.io/ offers something like that for WoT TD.
Some http clients automatically transform json request body like {"myDoubleProperty":123.0}
to {"myDoubleProperty":123}
which conforms to the json standard but makes type checking for C++ harder.
Webthing-CPP should support both input variants for double properties. At the moment it responds with 400 - value type not matching.
At the moment all emitted events as well as requested actions will be saved in memory. For long running applications with limited resources this could become a problem.
Possible attempts:
when limit is reached
Console output of default logger could be colorful dependent on log level.
e.g. error: red, warn: yellow, info: white, debug: gray
make this configurable?
Add flavor option to generate interface that is compatible with WoT standard. This would allow to let the thing live in WoT ecosystem.
also cf.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.