Device info

group LWGSM_DEVICE_INFO

Basic device information.

Functions

lwgsmr_t lwgsm_device_get_manufacturer(char *manuf, size_t len, const lwgsm_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)

Get device manufacturer.

Parameters
  • manuf[in] Pointer to output string array to save manufacturer info

  • len[in] Length of string array including NULL termination

  • evt_fn[in] Callback function called when command has finished. Set to NULL when not used

  • evt_arg[in] Custom argument for event callback function

  • blocking[in] Status whether command should be blocking or not

Returns

lwgsmOK on success, member of lwgsmr_t enumeration otherwise

lwgsmr_t lwgsm_device_get_model(char *model, size_t len, const lwgsm_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)

Get device model name.

Parameters
  • model[in] Pointer to output string array to save model info

  • len[in] Length of string array including NULL termination

  • evt_fn[in] Callback function called when command has finished. Set to NULL when not used

  • evt_arg[in] Custom argument for event callback function

  • blocking[in] Status whether command should be blocking or not

Returns

lwgsmOK on success, member of lwgsmr_t enumeration otherwise

lwgsmr_t lwgsm_device_get_revision(char *rev, size_t len, const lwgsm_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)

Get device revision.

Parameters
  • rev[in] Pointer to output string array to save revision info

  • len[in] Length of string array including NULL termination

  • evt_fn[in] Callback function called when command has finished. Set to NULL when not used

  • evt_arg[in] Custom argument for event callback function

  • blocking[in] Status whether command should be blocking or not

Returns

lwgsmOK on success, member of lwgsmr_t enumeration otherwise

lwgsmr_t lwgsm_device_get_serial_number(char *serial, size_t len, const lwgsm_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)

Get device serial number.

Parameters
  • serial[in] Pointer to output string array to save serial number info

  • len[in] Length of string array including NULL termination

  • evt_fn[in] Callback function called when command has finished. Set to NULL when not used

  • evt_arg[in] Custom argument for event callback function

  • blocking[in] Status whether command should be blocking or not

Returns

lwgsmOK on success, member of lwgsmr_t enumeration otherwise