The BGX DMS module is used for interacting with the Silicon Labs Device Management Service (DMS) in order to get a list of firmware versions that are available for your BGX device and to download firmware images.
More...
|
class
|
bgx_dms
|
|
bgx_dms
is used to get a list of firmware versions that are compatible with your BGX device and to download firmware images that can be loaded using
BGX_OTA_Updater
.
More...
|
|
The BGX DMS module is used for interacting with the Silicon Labs Device Management Service (DMS) in order to get a list of firmware versions that are available for your BGX device and to download firmware images.
◆
bgx_dms
bgx_dms
is used to get a list of firmware versions that are compatible with your BGX device and to download firmware images that can be loaded using
BGX_OTA_Updater
.
Inherits NSObject.
◆
initWithBGXUniqueDeviceID:()
- (id) initWithBGXUniqueDeviceID:
|
|
(NSString *)
|
bgx_unique_device_id
|
|
Initialize DMS for a specific BGX device ID.
-
Parameters
-
bgx_unique_device_id
|
- the unique device ID of the device being updated
|
-
Returns
-
the intialized instance of
bgx_dms
◆
retrieveAvailableVersions:()
- (void) retrieveAvailableVersions:
|
|
(void(^)(NSError *, NSArray *))
|
completionBlock
|
|
Pull a list of available firmware.
-
Parameters
-
completionBlock
|
to be called when the operation is complete. Parameters to this block include an error (nil on success, non-nil on error) and an NSArray of the available versions of firmware.
|
◆
loadFirmwareVersion:completion:()
- (void) loadFirmwareVersion:
|
|
(NSString *)
|
version
|
completion:
|
|
(void(^)(NSError *, NSString *firmware_path))
|
completionBlock
|
|
|
|
|
Retrieve the specified firmware image from DMS by version number.
If unable to load it, a non-nil error parameter will result and firmware_path will be nil. One parameter or the other will be nil depending on whether the image was loaded.
-
Parameters
-
version
|
is the firmware version to load
|
completionBlock
|
Block to be called when the operation is complete.
|
◆
reportInstallationResultWithDeviceUUID:version:()
+ (void) reportInstallationResultWithDeviceUUID:
|
|
(NSString *)
|
bgx_device_uuid
|
version:
|
|
(NSString *)
|
bundleid
|
|
|
|
|
Reports the installation to the DMS system for the purpose of analytic tracking.
-
Parameters
-
bgx_device_uuid
|
is the UUID of the BGX device to report.
|
bundleid
|
is the firmware bundle ID that was loaded.
|
◆
_firmwareList
- (NSArray*) _firmwareList
|
|
protected
|
◆
_reachabilityRef
- (SCNetworkReachabilityRef) _reachabilityRef
|
|
protected
|
◆
firmwareList
- (NSArray*) firmwareList
|
|
read
write
nonatomic
strong
|
This array contains NSDictionary objects with the following keys:
-
version - NSString containing the version
-
description - NSString containing the description of the firmware version.
-
tag - NSString containing the firmware flavor.
-
size - NSNumber containing the size of the firmware in bytes.
◆
DMSServerReachabilityChangedNotificationName
NSString* DMSServerReachabilityChangedNotificationName
|
This notification is sent when the reachability of the dms server changes.
Object is an NSNumber containing a BOOL. YES means the server is reachable. NO means it isn't reachable. This is only sent when this changes. Wait for it before trying to call loadFirmwareVersion: or retrieveAvailableVersions:
◆
NewBGXFirmwareListNotificationName
NSString* NewBGXFirmwareListNotificationName
|
This notification is sent when a new list of BGX Firmware versions is loaded from DMS.
The object is an NSArray containing NSDictionary objects with the following keys:
-
version - NSString containing the version
-
tag - NSString containing the firmware flavor.
-
size - NSNumber containing the size of the firmware in bytes.