Skip to main content

quectel_bg9x_eh_driver/
lib.rs

1use thiserror::Error;
2
3pub mod cellular;
4pub mod quectel_atat;
5
6#[derive(Debug, Error)]
7pub enum ModemError {
8    #[error("Modem not responding")]
9    NotResponding,
10    #[error("SIM failure")]
11    SimError,
12    #[error("SIM unknown")]
13    SimErrorUnknown,
14    #[error("Not attached to network")]
15    NoNetwork,
16    #[error("No active context")]
17    NoContext,
18    #[error("MQTT error")]
19    MqttRequestFailed,
20    #[error("Requested feature is not yet supported")]
21    NotSupported,
22    #[error("Request timeout")]
23    OperationTimeout,
24}