@@ -15,7 +15,7 @@ The Astarte Device SDK supports two different connection types:
1515Here we will go through, step by step, on how to connect and send data to the Message Hub.
1616
1717> You can find the full code by going to the
18- > [ msghub- client example] ( https://github.com/astarte-platform/astarte-device-sdk-rust/tree/master/examples/msghub-client )
18+ > [ message hub client example] ( https://github.com/astarte-platform/astarte-device-sdk-rust/tree/master/examples/message_hub_client )
1919
2020## Before you begin
2121
@@ -37,9 +37,9 @@ Hub server, and all the keys necessary to register the Message Hub server as a n
3737### Message Hub Server
3838
3939To register the server you can follow the guide and examples in
40- [ the MessageHub repository] ( https://github.com/astarte-platform/astarte-message-hub ) . Following
41- this, we assume the Server is listening on the same machine IP v4 address ` 127.0.0.1 ` and port
42- ` 50051 ` .
40+ [ the Astarte MessageHub repository] ( https://github.com/astarte-platform/astarte-message-hub ) .
41+ Following this, we assume the Server is listening on the same machine IP v4 address ` 127.0.0.1 ` and
42+ port ` 50051 ` .
4343
4444#### Client Auth
4545
@@ -286,8 +286,8 @@ function that we declared previously.
286286# const NODE_UUID: uuid::Uuid = uuid::uuid!("0444d8c3-f3f1-4b89-9e68-6ffb50ec1839");
287287# const MESSAGE_HUB_URL: &str = "http://127.0.0.1:50051";
288288# const STORE_DIRECTORY: &str = "./store-dir";
289-
290- // NOTO : set the interface directory in your project, these are relative to this file
289+ #
290+ // NOTE : set the interface directory in your project, these are relative to this file
291291const AGGREGATED_DEVICE: &str = include_str!("../../docs/interfaces/org.astarte-platform.rust.get-started.Aggregated.json");
292292const INDIVIDUAL_DEVICE: &str = include_str!("../../docs/interfaces/org.astarte-platform.rust.get-started.IndividualDevice.json");
293293const INDIVIDUAL_SERVER: &str = include_str!("../../docs/interfaces/org.astarte-platform.rust.get-started.IndividualServer.json");
@@ -334,8 +334,6 @@ We can now spawn a task to receive data from Astarte. Using the
334334# transport::grpc::{tonic::transport::Endpoint, Grpc, GrpcConfig},
335335# DeviceClient, DeviceConnection,
336336# };
337-
338-
339337# #[cfg(not(feature = "derive"))]
340338# use astarte_device_sdk_derive::FromEvent;
341339# #[cfg(feature = "derive")]
@@ -395,8 +393,6 @@ async fn receive_data(client: DeviceClient<SqliteStore>) -> eyre::Result<()> {
395393 }
396394}
397395
398-
399-
400396#[tokio::main]
401397async fn main() -> eyre::Result<()> {
402398# let mut tasks = tokio::task::JoinSet::new();
@@ -446,7 +442,7 @@ convert the Rust struct in an Object Aggregate to send.
446442# transport::grpc::{tonic::transport::Endpoint, Grpc, GrpcConfig},
447443# DeviceClient, DeviceConnection,
448444# };
449-
445+ #
450446use std::time::Duration;
451447
452448# #[cfg(feature = "derive")]
0 commit comments