Skip to content

struct gsm_modem_init_t

GSM modem initialization parameters. #include <modem/gsm_modem.h>

Public Attributes

Name
uint32_tbands
Bitfield containing the or'ed frequency bands the modem should search.
char[8]oper
numeric operator code (3-digit MCC, 2-digit MNC, List of MNC for the EU). If left empty (0) the modem selects from the operators stored on the SIM card.
gsm_technology_ttech
Radio access technology (RAT) to use.
uint8_tpower_on_reset
Force a modem power on reset.
uint8_tedrx
Extended discontinuous reception settings.
uint8_tpsm
Power saving mode settings.
char[100]apn
APN to use.
apn_auth_tapn_auth_type
PPP authentication type for the APN.
char[128]apn_user
PPP APN username.
char[512]apn_pwd
PPP APN password.
char[10]scanseq
the order in which different RATs shall be preferably used
uint8_tuse_peer_dns
1= use dns servers from PPP negotiation, 0= use custom DNS server
uint8_tno_auto_attach
0= attach to the network on init, 1= attach only when calling connect.
uint32_tbaudrate
Baudrate for the modem. If set to 0 default is 115200;.

Public Attributes Documentation

variable bands

cpp
uint32_t gsm_modem_init_t::bands

Bitfield containing the or'ed frequency bands the modem should search.

variable oper

cpp
char gsm_modem_init_t::oper[8]

numeric operator code (3-digit MCC, 2-digit MNC, List of MNC for the EU). If left empty (0) the modem selects from the operators stored on the SIM card.

variable tech

cpp
gsm_technology_t gsm_modem_init_t::tech

Radio access technology (RAT) to use.

variable power_on_reset

cpp
uint8_t gsm_modem_init_t::power_on_reset

Force a modem power on reset.

variable edrx

cpp
uint8_t gsm_modem_init_t::edrx

Extended discontinuous reception settings.

variable psm

cpp
uint8_t gsm_modem_init_t::psm

Power saving mode settings.

variable apn

cpp
char gsm_modem_init_t::apn[100]

APN to use.

variable apn_auth_type

cpp
apn_auth_t gsm_modem_init_t::apn_auth_type

PPP authentication type for the APN.

variable apn_user

cpp
char gsm_modem_init_t::apn_user[128]

PPP APN username.

variable apn_pwd

cpp
char gsm_modem_init_t::apn_pwd[512]

PPP APN password.

variable scanseq

cpp
char gsm_modem_init_t::scanseq[10]

the order in which different RATs shall be preferably used

variable use_peer_dns

cpp
uint8_t gsm_modem_init_t::use_peer_dns

1= use dns servers from PPP negotiation, 0= use custom DNS server

variable no_auto_attach

cpp
uint8_t gsm_modem_init_t::no_auto_attach

0= attach to the network on init, 1= attach only when calling connect.

variable baudrate

cpp
uint32_t gsm_modem_init_t::baudrate

Baudrate for the modem. If set to 0 default is 115200;.