pub struct LoraAutoJoinOtaaMode {
pub cmd: String<8>,
pub min_period: u32,
pub max_period: u32,
pub steps: u32,
}
Expand description
4.24.2 OTAA auto join Setup auto join using the setup provided If min_period is 0, then auto join mode is OFF If max_period is 0, then it is in auto join mode 0 If steps is 0, then it is in auto join mode 1 Otherwise, it is in auto join mode 2
Fields§
§cmd: String<8>
§min_period: u32
§max_period: u32
§steps: u32
Implementations§
Trait Implementations§
Source§impl AtatCmd for LoraAutoJoinOtaaMode
impl AtatCmd for LoraAutoJoinOtaaMode
Source§type Response = LoraOtaaAutoJoinResponse
type Response = LoraOtaaAutoJoinResponse
The type of the response. Must implement the
AtatResp
trait.Source§fn write(&self, buf: &mut [u8]) -> usize
fn write(&self, buf: &mut [u8]) -> usize
Write the command and return the number of written bytes.
Source§fn parse(
&self,
res: Result<&[u8], InternalError<'_>>,
) -> Result<Self::Response, Error>
fn parse( &self, res: Result<&[u8], InternalError<'_>>, ) -> Result<Self::Response, Error>
Parse the response into a
Self::Response
or Error
instance.Source§const MAX_TIMEOUT_MS: u32 = 1_000u32
const MAX_TIMEOUT_MS: u32 = 1_000u32
The max timeout in milliseconds.
Source§const ATTEMPTS: u8 = 1u8
const ATTEMPTS: u8 = 1u8
The max number of times to attempt a command with automatic retries if
using
send_retry
.Source§const REATTEMPT_ON_PARSE_ERR: bool = true
const REATTEMPT_ON_PARSE_ERR: bool = true
Whether or not to reattempt a command on a parse error
using
send_retry
.Source§const EXPECTS_RESPONSE_CODE: bool = true
const EXPECTS_RESPONSE_CODE: bool = true
Force client to look for a response.
Empty slice is then passed to parse by client.
Implemented to enhance expandability of ATAT
Source§impl Clone for LoraAutoJoinOtaaMode
impl Clone for LoraAutoJoinOtaaMode
Source§fn clone(&self) -> LoraAutoJoinOtaaMode
fn clone(&self) -> LoraAutoJoinOtaaMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoraAutoJoinOtaaMode
impl Debug for LoraAutoJoinOtaaMode
Auto Trait Implementations§
impl Freeze for LoraAutoJoinOtaaMode
impl RefUnwindSafe for LoraAutoJoinOtaaMode
impl Send for LoraAutoJoinOtaaMode
impl Sync for LoraAutoJoinOtaaMode
impl Unpin for LoraAutoJoinOtaaMode
impl UnwindSafe for LoraAutoJoinOtaaMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more