Struct hub_sdk::HubSDKConfig
[−]
[src]
pub struct HubSDKConfig { pub api: ThingsApi, pub connect_api: ConnectApi, pub element_file: PathBuf, pub geeny_creds_file: PathBuf, pub mqtt_cert_path: PathBuf, pub mqtt_host: String, pub mqtt_port: u16, }
Configuration structure for a HubSDK
instance
Fields
api: ThingsApi
Connection object for the main Things API, e.g., https://labs.geeny.io
connect_api: ConnectApi
Connection object for the authorization API, e.g., https://connect.geeny.io
element_file: PathBuf
Path to a file to store information regarding Things/Elements that have been paired with the SDK. This file stores sensitive information such as Certificate Pairs for each device
geeny_creds_file: PathBuf
Path to a file to store information regarding the user currently authorized to use this Hub. This file stores sensitive information such as the username/email of the current user, as well as the current API token used to make device management requests
mqtt_cert_path: PathBuf
Path to a folder to store certificates used to connect via MQTT. This folder stores sensitive information, such as private and public key pairs for each device paired with the SDK
mqtt_host: String
The MQTT host to connect to all devices, e.g., mqtt.geeny.io
mqtt_port: u16
The MQTT port to connect to all devices, e.g., 8883
Trait Implementations
impl Debug for HubSDKConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for HubSDKConfig
[src]
fn clone(&self) -> HubSDKConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more