Class AT_CellularInformation. More...
#include <AT_CellularInformation.h>
Public Types |
Public Member Functions | |
| virtual nsapi_error_t | get_manufacturer (char *buf, size_t buf_size) |
| Request manufacturer identification of cellular device. More... | |
| virtual nsapi_error_t | get_model (char *buf, size_t buf_size) |
| Request model identification of cellular device. More... | |
| virtual nsapi_error_t | get_revision (char *buf, size_t buf_size) |
| Request revision identification of cellular device. More... | |
| virtual nsapi_error_t | get_imsi (char *imsi, size_t buf_size) |
| Get IMSI from the sim card. More... | |
| virtual nsapi_error_t | get_iccid (char *buf, size_t buf_size) |
| Get serial number from the SIM card. More... | |
| ATHandler & | get_at_handler () |
| Getter for at handler. More... | |
| device_err_t | get_device_error () const |
| Gets the device error that happened when using AT commands/responses. More... | |
Static Public Member Functions | |
| static void | set_cellular_properties (const intptr_t *property_array) |
| Cellular module need to define an array of cellular properties which defines module supported property values. More... | |
| static intptr_t | get_property (CellularProperty key) |
| Get value for the given key. More... | |
Protected Member Functions | |
| nsapi_error_t | get_info (const char *cmd, char *buf, size_t buf_size) |
| Request information text from cellular device. More... | |
Class AT_CellularInformation.
Class that provides information about cellular device.
Definition at line 31 of file AT_CellularInformation.h.
|
inherited |
Request serial number identification of cellular device.
| buf | serial number as zero terminated string |
| buf_size | max length of serial number is 2048 characters |
| type | serial number type to read |
Definition at line 89 of file CellularInformation.h.
|
inherited |
|
inherited |
Gets the device error that happened when using AT commands/responses.
This is at error returned by the device. Returned CME/CMS errors can be found from 3gpp documents 27007 and 27005.
|
virtual |
Get serial number from the SIM card.
| buf | SIM ICCID as zero terminated string |
| buf_size | max length of SIM ICCID is MAX_ICCID_LENGTH |
Implements CellularInformation.
|
virtual |
Get IMSI from the sim card.
| imsi | preallocated char* which after successful request contains imsi |
| buf_size | size of imsi buffer |
Implements CellularInformation.
|
protected |
Request information text from cellular device.
| cmd | 3gpp command string |
| buf | buffer for response |
| buf_size | buffer size |
|
virtual |
Request manufacturer identification of cellular device.
| buf | manufacturer identification as zero terminated string |
| buf_size | max length of manufacturer identification is 2048 characters |
Implements CellularInformation.
|
virtual |
Request model identification of cellular device.
| buf | model identification as zero terminated string |
| buf_size | max length of model identification is 2048 characters |
Implements CellularInformation.
|
staticinherited |
Get value for the given key.
| key | key for value to be fetched |
|
virtual |
Request revision identification of cellular device.
| buf | revision identification as zero terminated string |
| buf_size | max length of revision identification is 2048 characters |
Implements CellularInformation.
|
staticinherited |
Cellular module need to define an array of cellular properties which defines module supported property values.
| property_array | array of module properties |