drogue-iot / drogue-client Goto Github PK
View Code? Open in Web Editor NEWRust clients for Drogue IoT Cloud
License: Apache License 2.0
Rust clients for Drogue IoT Cloud
License: Apache License 2.0
It would be great to have sa lib that does (at least) :
That way if someone wants to implement a management tool (i.e. drg) or an "device" app (i.e. whatever on a raspberry pi) then use crates features to select needed api parts
drogue-client = {version: 0.2, features: ["management"]}
That way the crate can grow with mqtt and other stuff :)
to avoid e.into()
and have just a map :)
match client.create_device(&operation.payload.unwrap()).await {
Ok(_) => {
Ok(Outcome::Success(format!("Device created")))
}
Err(e) => Err(e.into()),
}
Here are a few signature ideas
Device::new(app: String, name: String) -> Device;
Device::add_credentials(mut self, cred: Credential) -> Self;
Device::set_spec(mut self, spec: Value) -> Self;
i.e. parsing : .well-known/drogue-endpoints
and api/console/v1alpha1/info
the code is already in drg::util
@ctron WDYT ?
drg create app example-a/pp
Error: client error: error decoding response body: EOF while parsing a value at line 1 column 0
Caused by:
0: error decoding response body: EOF while parsing a value at line 1 column 0
1: EOF while parsing a value at line 1 column 0
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.