drivers: modem: Get the IMSI and ICCID from the SIM
This adds an option to query the modem for the SIM's IMSI and ICCID numbers, just like the modem's IMEI is queried today. This requires the SIM to be present, which might not be the case for all applications, so it can be disabled. Signed-off-by: Göran Weinholt <goran.weinholt@endian.se> Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
This commit is contained in:
parent
e86e6fa769
commit
1ccc65a9c9
5 changed files with 80 additions and 1 deletions
|
@ -32,7 +32,11 @@ struct mdm_receiver_context {
|
|||
char *data_manufacturer;
|
||||
char *data_model;
|
||||
char *data_revision;
|
||||
#if defined(CONFIG_MODEM_SIM_NUMBERS)
|
||||
char *data_imei;
|
||||
char *data_imsi;
|
||||
#endif
|
||||
char *data_iccid;
|
||||
int data_rssi;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue