Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
The Update Service APIs are designed for over-the-air (OTA) solutions. The OTA package is encapsulated with a QOTA header, which can be uploaded to the cloud server and downloaded to the target device. In a QOTA header, the package can be marked as firmware or application bundle. The Update Service supports installing firmware and applications and it parses the bundle when the OTA package is downloaded on the target device. Users can register a handler to get detailed update progress.
The functions of this API are provided by the tafUpdateSvc service.
The following example illustrates how to bind to the Update Service.
bindings: { clientExe.clientComponent.taf_update -> tafUpdateSvc.taf_update }
The following example illustrates registering a handler for updated states.
Use taf_update_AddStateHandler() to register the handler as a callback for update state and handle the different state when an indication arrives.