Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "meshtastic"
description = "A Rust library for communicating with and configuring Meshtastic devices."
homepage = "https://meshtastic.org/"
repository = "https://github.com/meshtastic/rust"
documentation = "https://docs.rs/heapless"
keywords = ["meshtastic", "mesh", "lora", "tcp", "serial"]
categories = ["embedded", "config", "encoding"]
authors = ["Adam McQuilkin"]
Expand Down Expand Up @@ -83,3 +84,7 @@ bluez-async = { version = "=0.8.0", optional = true }
[dev-dependencies]
fern = { version = "0.7.1", features = ["colored"] }
humantime = "2.1.0"

[package.metadata.docs.rs]
features = ["bluetooth-le"]
rustdoc-args = ["--cfg", "docsrs"]
2 changes: 1 addition & 1 deletion src/connections/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::connections::stream_buffer::StreamBuffer;
use super::wrappers::encoded_data::IncomingStreamData;

/// Interval for sending heartbeat packets to the radio (in seconds).
/// Needs to be less than this: https://github.com/meshtastic/firmware/blob/eb372c190ec82366998c867acc609a418130d842/src/SerialConsole.cpp#L8
/// Needs to be less than this: <https://github.com/meshtastic/firmware/blob/eb372c190ec82366998c867acc609a418130d842/src/SerialConsole.cpp#L8>
pub const CLIENT_HEARTBEAT_INTERVAL: u64 = 5 * 60; // 5 minutes

pub fn spawn_read_handler<R>(
Expand Down
6 changes: 3 additions & 3 deletions src/generated/meshtastic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7862,7 +7862,7 @@ pub struct GeoChat {
}
///
/// ATAK Group
/// <__group role='Team Member' name='Cyan'/>
/// `<__group role='Team Member' name='Cyan'/>`
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
#[cfg_attr(feature = "ts-gen", derive(specta::Type))]
Expand All @@ -7880,7 +7880,7 @@ pub struct Group {
}
///
/// ATAK EUD Status
/// <status battery='100' />
/// `<status battery='100' />`
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
#[cfg_attr(feature = "ts-gen", derive(specta::Type))]
Expand All @@ -7893,7 +7893,7 @@ pub struct Status {
}
///
/// ATAK Contact
/// <contact endpoint='0.0.0.0:4242:tcp' phone='+12345678' callsign='FALKE'/>
/// `<contact endpoint='0.0.0.0:4242:tcp' phone='+12345678' callsign='FALKE'/>`
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
#[cfg_attr(feature = "ts-gen", derive(specta::Type))]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_cfg))]

//! A Rust library for communicating with and configuring Meshtastic devices.
#[cfg(feature = "tokio")]
pub(crate) mod connections;
Expand Down
Loading