getLatestRelease

Gets the information about the latest release for the given device from nRF Cloud Services by reading required data using the given transport.

This method is using Memfault group (id = 128) to get the:

  • device Serial Number

  • device Hardware Version

  • device Software Type

  • current firmware version

  • the project key

and then requesting the release information form nRF Cloud.

Parameters

transport

The transport to use to send commands.

Throws

if reading the device information fails.


Gets the information about the latest release for the given device from nRF Cloud Services by reading required data using the given transport.

This method is using Memfault group (id = 128) to get the:

  • device Serial Number

  • device Hardware Version

  • device Software Type

  • current firmware version

  • the project key

and then requesting the release information form nRF Cloud.

Parameters

transport

The transport to use to send commands.

callback

A callback with the ReleaseInformation object containing details about the latest release or an error.


suspend fun getLatestRelease(deviceInfo: DeviceInfo, projectKey: String): ReleaseInformation

Gets the latest release for the given device from nRF Cloud Services.

Return

A ReleaseInformation object containing details about the latest release or an error.

Parameters

deviceInfo

Information about the device, such as hardware version, software type and current firmware version.

projectKey

The project API key from nRF Cloud. You can find it in the project settings on the nRF Cloud web portal.


fun getLatestRelease(deviceInfo: DeviceInfo, projectKey: String, callback: ReleaseCallback)

Gets the latest release for the given device from nRF Cloud Services.

Parameters

deviceInfo

Information about the device, such as hardware version, software type and current firmware version.

projectKey

The project API key from nRF Cloud. You can find it in the project settings on the nRF Cloud web portal.

callback

A callback with the ReleaseInformation object containing details about the latest release or an error.