pub enum Bg77Error {
Show 17 variants
NoSocketAvailable,
PinRequired,
CgattFailure,
SocketAlreadyConnected,
OpenSocketError,
IPv6Unsupported,
NotConnected,
Hardware,
AtCmdTimeout,
AtCmdError,
AtCmdCmeError,
BufferOverflow,
TxSize,
ReverseDnsUnsupported,
ParseIpAddressFailed,
ParseFailed,
RxSize,
}Expand description
BG77 driver error type
Variants§
NoSocketAvailable
All sockets in use
PinRequired
It looks like a pin is required to unlock the SIM card.
CgattFailure
Internal error: Even though the operator selection succeeded, the modem does not look connected afterwards.
SocketAlreadyConnected
Trying to connect a socket that is already connected
OpenSocketError
Could not open socket (modem did not answer, answer could not be parsed or modem answered with an unexpected message).
IPv6Unsupported
An IPv6 IP address was used but IPv6 is not supported (yet?). This
error originates from the fact that we use the (external)
embedded-nal::<Protocol>ClientStack traits which accept both IPv4
and IPv6 addresses so we can not prevent this kind of error statically.
NotConnected
Trying to send or receive data when the socket is not connected.
Hardware
An error occurred when accessing the underlying hardware (gpio or serial)
AtCmdTimeout
An AT command timed out
AtCmdError
The modem responded to an AT command with “ERROR”
AtCmdCmeError
The modem responded to an AT command with “+CME ERROR: …”
BufferOverflow
An internal buffer was not big enough to handle the amount of data
TxSize
The tx data size exceeds the maximum supported tx data size (1460 bytes)
ReverseDnsUnsupported
embedded_nal::Dns::get_host_by_address() was called which is not supported
ParseIpAddressFailed
The resolved IP address could not be parsed into a embedded_nal::IpAddr
ParseFailed
A value could not be parsed into a specific type, e.g. the modem answer (bytes) could not be parsed into an integer.
RxSize
The modem returned more rx data than the maximum amount of data we requested / can handle.