pub struct CELLULAR_CONFIG_DATA {
pub enable_lte: u8,
pub enable_pin: u8,
pub pin: [u8; 16],
pub new_pin: [u8; 16],
pub apn: [u8; 32],
pub puk: [u8; 16],
pub roaming: u8,
pub response: CellularConfigResponse,
}
asluav
only.Expand description
id: 336 Configure cellular modems. This message is re-emitted as an acknowledgement by the modem. The message may also be explicitly requested using MAV_CMD_REQUEST_MESSAGE..
Fields§
§enable_lte: u8
Enable/disable LTE. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response..
enable_pin: u8
Enable/disable PIN on the SIM card. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response..
pin: [u8; 16]
PIN sent to the SIM card. Blank when PIN is disabled. Empty when message is sent back as a response..
new_pin: [u8; 16]
New PIN when changing the PIN. Blank to leave it unchanged. Empty when message is sent back as a response..
apn: [u8; 32]
Name of the cellular APN. Blank to leave it unchanged. Current APN when sent back as a response..
puk: [u8; 16]
Required PUK code in case the user failed to authenticate 3 times with the PIN. Empty when message is sent back as a response..
roaming: u8
Enable/disable roaming. 0: setting unchanged, 1: disabled, 2: enabled. Current setting when sent back as a response..
response: CellularConfigResponse
Message acceptance response (sent back to GS)..
Implementations§
Source§impl CELLULAR_CONFIG_DATA
impl CELLULAR_CONFIG_DATA
pub const ENCODED_LEN: usize = 84usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for CELLULAR_CONFIG_DATA
impl Clone for CELLULAR_CONFIG_DATA
Source§fn clone(&self) -> CELLULAR_CONFIG_DATA
fn clone(&self) -> CELLULAR_CONFIG_DATA
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more