This crate contains wrappers for functions and types defined in Nordic’s libmodem, which is part of nrfxlib.
nrfxlib_sys crate is the auto-generated wrapper for
nrf_socket.h. This crate contains Rustic wrappers for those
To bring up the LTE stack you need to call
nrf_modem_init(). Before that
you need to enable the EGU1 and EGU2 interrupts, and arrange for the
relevant functions (
respectively) to be called when they occur. The IPC interrupt handler
is registered by the relevant callback.
To talk to the LTE modem, use the
at::send_at_command() function. It will call
the callback with the response received from the modem.
To automatically send the AT commands which initialise the modem and wait
until it has registered on the network, call the
Once that is complete, you can create TCP or TLS sockets and send/receive
Copyright (c) 42 Technology Ltd 2021
Dual-licensed under MIT and Apache 2.0. See the README for more details.
libbsd.a API implementation
AT Sockets for nrfxlib
DTLS Sockets for nrfxlib
GNSS Module for nrfxlib
Modem helper functions for nrfxlib
TCP Sockets for nrfxlib
Raw Sockets for nrfxlib
UDP Sockets for nrfxlib
Create a camel-case type name for socket information.
Create a camel-case type name for socket addresses.
Describes a socket you wish to poll, and the result of polling it.
The ways a socket can respond to a poll.
Errors that can be returned in response to an AT command.
The set of error codes we can get from this API.
IPC error type
The ways in which you can poll on a particular socket
Describes something we can poll on.
Return the last error stored by the nrfxlib C library.
Start the NRF Modem library
Poll on multiple sockets at once.
Stop the NRF Modem library