![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
#import <WTLOTAHeader.h>
Instance Methods | |
(instancetype) | - initWithData: |
Properties | |
NSNumber * | vendorID |
NSNumber * | productID |
NSNumber * | payloadSize |
NSNumber * | softwareVersion |
NSString * | softwareVersionString |
NSString * | releaseNotesURL |
NSData * | imageDigest |
WTLOTAImageDigestType | imageDigestType |
NSNumber * | minApplicableVersion |
NSNumber * | maxApplicableVersion |
Definition at line 42 of file WTLOTAHeader.h.
- (instancetype) initWithData: | (macos(13.3)) | ||
(watchos(9.4)) | |||
(tvos(16.4)) | API_AVAILABLE | ||
Initialize the WTLOTAHeader with the given Matter OTA software image data (as defined in the "Over-the-Air (OTA) Software Update File Format" section of the Matter specification). The provided data is expected to point to a large enough initial chunk of an OTA software image that it includes the entire header (e.g. the entire image).
If the passed-in data is too small and does not contain the entire OTA image header, initWithData will return nil and the caller should try creating a new WTLOTAHeader object and initializing it with a larger chunk of the image.
|
readwritenonatomiccopy |
A digest of the payload that follows the header. Can be used to verify that the payload is not truncated or corrupted.
Definition at line 106 of file WTLOTAHeader.h.
|
readwritenonatomicassign |
The specific algorithm that was used to compute imageDigest.
Definition at line 111 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
If not nil, specifies the largest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
Definition at line 127 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
If not nil, specifies the smallest software version that this update can be applied on top of. In that case, this value must be compared to the SoftwareVersion in the QueryImage command to check whether this image is valid for the OTA requestor.
Definition at line 119 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
The size of the actual image payload, which follows the header in the OTA file.
Definition at line 79 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
The identifier of the specific product the image is meant for. May be 0, if the image might apply to more than one product. This is allowed, but not required, to be matched against the product id received in Query Image.
Definition at line 73 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
If not nil a URL pointing to release notes for the software update represented by the image.
Definition at line 100 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
The version of the software contained in this image. This is the version the OTA requestor will be updated to if this image is installed. This can be used to determine whether this image is newer than what the requestor is currently running, by comparing it to the SoftwareVersion in the Query Image command.
Definition at line 88 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
Human-readable version of softwareVersion. This must not be used for deciding which versions are newer or older; use softwareVersion for that.
Definition at line 94 of file WTLOTAHeader.h.
|
readwritenonatomiccopy |
The identifier of the vendor whose product this image is meant for.
This field can be compared to the vendor id received in the Query Image command to determine whether an image matches.
This field may be 0, in which case the image might apply to products from more than one vendor. If it's nonzero, it must match the vendor id in Query Image for this image to be considered.
Definition at line 66 of file WTLOTAHeader.h.