3 unstable releases

0.2.1 Feb 27, 2024
0.2.0 Feb 9, 2024
0.1.0 Sep 18, 2023

#260 in Asynchronous

Download history 10/week @ 2024-01-19 11/week @ 2024-01-26 3/week @ 2024-02-02 2/week @ 2024-02-09 15/week @ 2024-02-16 159/week @ 2024-02-23 30/week @ 2024-03-01 24/week @ 2024-03-08 5/week @ 2024-03-15 48/week @ 2024-03-29 14/week @ 2024-04-05

62 downloads per month
Used in fundamentum-edge-daemon

Apache-2.0

42KB
701 lines

Crates.io Docs.rs

Fundamentum SDK API

Rust HTTP client targeting Fundamentum IoT devices RestAPI.

Here are some references to the official documentation for the targeted RestAPI:

Getting Started

To get started with the SDK, you'll need to install Rust. You can follow the instructions on the official Rust website: Install Rust.

Example

use fundamentum_sdk_api::client::{
    api_version::V3,
    config::{ApiConfig, ClientConfig},
    sdk_api::SdkApi,
};

#[tokio::main]
async fn main() {
    let client_config = ClientConfig {
        base_path: "http://devices-gateway.fundamentum.test".to_owned(),
        ..ClientConfig::default()
    };

    let api_config = ApiConfig {
        project_id: 1,
        region_id: 2,
        registry_id: 3,
        access_token: "access_token".to_owned(),
    };

    let api: SdkApi<V3> = SdkApi::new(client_config, &api_config);
    api.status().await.unwrap();
}

Development setup

Please see the development setup guide.

License

Licensed under Apache License, Version 2.0 LICENSE

Dependencies

~6–19MB
~295K SLoC