Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions

   Lists the APIs for reading the version information of the WINC firmware.

Functions

NMI_API sint8 m2m_ota_get_firmware_version (tstrM2mRev *pstrRev)
 Get the OTA Firmware version. More...
 
sint8 m2m_wifi_get_firmware_version (tstrM2mRev *pstrRev)
 Get Firmware version info. More...
 

sint8 m2m_ota_get_firmware_version ( tstrM2mRev pstrRev)

Get the OTA Firmware version.

Returns
The function returns M2M_SUCCESS for success and a negative value otherwise.

Get OTA Firmware version info from the inactive partition, as defined in the structure tstrM2mRev.

Parameters
[out]pstrRevPointer to the structure tstrM2mRev that contains the firmware version parameters.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_chip_sleep(), hif_chip_wake(), M2M_SUCCESS, and nm_get_ota_firmware_info().

NMI_API m2m_wifi_get_firmware_version ( tstrM2mRev pstrRev)

Get Firmware version info.

Get the Firmware version info from the active partition, as defined in the structure tstrM2mRev.

Parameters
[out]pstrRevPointer to the structure tstrM2mRev that contains the firmware version parameters.
Precondition
Must be called after initialization through the following function m2m_wifi_init.
See Also
m2m_wifi_init
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_chip_sleep(), hif_chip_wake(), M2M_SUCCESS, and nm_get_firmware_full_info().