Class CellularInformation.
More...
#include <CellularInformation.h>
Class CellularInformation.
An abstract interface that provides information about cellular device.
Definition at line 39 of file CellularInformation.h.
◆ ~CellularInformation()
◆ get_manufacturer()
virtual nsapi_error_t get_manufacturer |
( |
char * |
buf, |
|
|
size_t |
buf_size |
|
) |
| |
|
pure virtual |
Request manufacturer identification of cellular device.
- Parameters
-
buf | manufacturer identification as zero terminated string |
buf_size | max length of manufacturer identification is 2048 characters |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if buf is null or buf_size is zero NSAPI_ERROR_DEVICE_ERROR on failure
Implemented in AT_CellularInformation.
◆ get_model()
Request model identification of cellular device.
- Parameters
-
buf | model identification as zero terminated string |
buf_size | max length of model identification is 2048 characters |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if buf is null or buf_size is zero NSAPI_ERROR_DEVICE_ERROR on failure
Implemented in AT_CellularInformation.
◆ get_revision()
virtual nsapi_error_t get_revision |
( |
char * |
buf, |
|
|
size_t |
buf_size |
|
) |
| |
|
pure virtual |
Request revision identification of cellular device.
- Parameters
-
buf | revision identification as zero terminated string |
buf_size | max length of revision identification is 2048 characters |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if buf is null or buf_size is zero NSAPI_ERROR_DEVICE_ERROR on failure
Implemented in AT_CellularInformation.
◆ get_serial_number()
virtual nsapi_size_or_error_t get_serial_number |
( |
char * |
buf, |
|
|
size_t |
buf_size, |
|
|
SerialNumberType |
type = SN |
|
) |
| |
|
pure virtual |
Request serial number identification of cellular device.
- Parameters
-
buf | serial number as zero terminated string |
buf_size | max length of serial number is 2048 characters |
type | serial number type to read |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if buf is null or buf_size is zero NSAPI_ERROR_UNSUPPORTED if the modem does not support SerialNumberType NSAPI_ERROR_DEVICE_ERROR on other failures
Implemented in AT_CellularInformation.
◆ get_imsi()
Get IMSI from the sim card.
- Parameters
-
imsi | preallocated char* which after successful request contains imsi |
buf_size | size of imsi buffer |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if imsi is null or buf_size is zero or buf_size is smaller than MAX_IMSI_LENGTH + 1 NSAPI_ERROR_DEVICE_ERROR on other failures
Implemented in AT_CellularInformation.
◆ get_iccid()
Get serial number from the SIM card.
- Parameters
-
buf | SIM ICCID as zero terminated string |
buf_size | max length of SIM ICCID is MAX_ICCID_LENGTH |
- Returns
- NSAPI_ERROR_OK on success NSAPI_ERROR_PARAMETER if buf is null or buf_size is zero NSAPI_ERROR_DEVICE_ERROR on failure
Implemented in AT_CellularInformation, and GEMALTO_CINTERION_CellularInformation.