Struct SeeedLoraE5Client

Source
pub struct SeeedLoraE5Client<'a, W: Write, const INGRESS_BUF_SIZE: usize> { /* private fields */ }

Implementations§

Source§

impl<'a, W: Write, const INGRESS_BUF_SIZE: usize> SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

Source

pub fn eject_client(self) -> Client<'a, W, INGRESS_BUF_SIZE>

Source§

impl<'a, W: Write, const INGRESS_BUF_SIZE: usize> SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

Source

pub async fn new( client: Client<'a, W, INGRESS_BUF_SIZE>, ) -> Result<SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>, Error>

Source§

impl<'a, W: Write, const INGRESS_BUF_SIZE: usize> SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

Source

pub async fn verify_com_is_working(&mut self) -> Result<bool, Error>

Source

pub async fn at_echo_on(&mut self) -> Result<bool, Error>

Source

pub async fn at_echo_set(&mut self, _on: bool) -> Result<bool, Error>

Source

pub async fn version(&mut self) -> Result<VerResponse, Error>

Source

pub async fn reset(&mut self) -> Result<(), Error>

Source

pub async fn factory_reset(&mut self) -> Result<(), Error>

Source§

impl<'a, W: Write, const INGRESS_BUF_SIZE: usize> SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

Source

pub async fn join_mode(&mut self) -> Result<LoraJoinMode, Error>

Source

pub async fn join_mode_set( &mut self, mode: LoraJoinMode, ) -> Result<LoraJoinMode, Error>

Source

pub async fn dev_eui(&mut self) -> Result<u64, Error>

Source

pub async fn dev_eui_set(&mut self, dev_eui: u64) -> Result<u64, Error>

Source

pub async fn app_eui(&mut self) -> Result<u64, Error>

Source

pub async fn app_eui_set(&mut self, app_eui: u64) -> Result<u64, Error>

Source

pub async fn app_key_set(&mut self, app_key: u128) -> Result<(), Error>

Source

pub async fn lora_region(&mut self) -> Result<LoraRegion, Error>

Source

pub async fn lora_region_set( &mut self, region: LoraRegion, ) -> Result<LoraRegion, Error>

Source

pub async fn lora_class(&mut self) -> Result<LoraClass, Error>

Source

pub async fn lora_class_set( &mut self, class: LoraClass, ) -> Result<LoraClass, Error>

Source

pub async fn lora_join_otaa(&mut self) -> Result<LoraJoiningStatus, Error>

Source

pub async fn lora_join_status(&mut self) -> Result<JoinStatus, Error>

Source

pub async fn lora_join_otaa_and_wait_for_result( &mut self, ) -> Result<JoinStatus, Error>

Source

pub async fn auto_join_set( &mut self, is_on: bool, interval: u32, ) -> Result<String<26>, Error>

Source

pub async fn max_tx_len(&mut self) -> Result<u8, Error>

Source

pub async fn confirm_send(&mut self) -> Result<bool, Error>

Source

pub async fn confirm_send_set(&mut self, is_on: bool) -> Result<bool, Error>

Source

pub async fn send( &mut self, retransmission_times: u8, port: u8, data: &[u8], ) -> Result<(), Error>

Source

pub async fn receive( &mut self, ) -> Result<(ReceivedMessage, MessageStats), Error>

Source

pub async fn adr_set(&mut self, on: bool) -> Result<bool, Error>

Source

pub async fn dr_set(&mut self, data_rate: u8) -> Result<u8, Error>

Source

pub async fn tx_power_force_set(&mut self, db_m: u8) -> Result<u8, Error>

Source

pub async fn tx_power_table(&mut self) -> Result<Vec<u8, 12>, Error>

Auto Trait Implementations§

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> Freeze for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>
where W: Freeze,

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> !RefUnwindSafe for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> Send for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>
where W: Send,

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> Sync for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>
where W: Sync,

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> Unpin for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>
where W: Unpin,

§

impl<'a, W, const INGRESS_BUF_SIZE: usize> !UnwindSafe for SeeedLoraE5Client<'a, W, INGRESS_BUF_SIZE>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.