Expand description
Rust MQTT client targeting Fundamentum IoT’s MQTT broker.
The Fundamentum’s MQTT SDK is designed to quickly set up a Rust environment with an MQTT client, focusing on consuming Fundamentum’s MQTT services.
§Example
To test your environment, you can build and run a simple command-line application. Check out the examples directory for code samples.
$ cargo run --example pubsub -- \
--private-key ./rsa_private.pem \
--project-id 13 --region-id 1 --registry-id 12 \
--serial 123456789
# ..
§Examples
pubsub
: an advanced example with heartbeat and pub/sub pattern.commands
: a basic example with the commands workflow.heartbeat
: a very simple example with the heartbeat.config
: a very simple example that prints the current configuration.
Modules§
- models
- Command module
Macros§
- json
- Construct a
serde_json::Value
from a JSON literal.
Structs§
- Client
- Fundamentum
IoT
Async Client - Client
Settings - Fundamentum
IoT
Settings - Client
Status Stream - A stream for tracking the status of a client.
- ConnAck
- Acknowledgement to connect packet
- Device
- Fundamentum Device
- Event
Loop - Eventloop with all the state of a connection
- MQTT
Options Overrides - Option Size Override
- Security
- Security definition
- Security
Builder - Builder for
Security
. - Security
File Fetcher - Security Fetcher default read file implementation
Enums§
- Algorithm
- The algorithms supported for signing/verifying JWTs
- Client
Status - Represents the status of the client connection.
- Client
Status Error - Represents the possible errors that can occur with the client connection status.
- Connect
Return Code - Return code in connack
- Error
- Fundamentum iot core error
- Message
- Message definition
- Packet
- QoS
- Quality of service
- Security
Builder Error - Error type for SecurityBuilder
Traits§
- Security
Fetcher - Security Fetcher Interface