DeviceConfig¶
- class DeviceConfigClient¶
 - Canonical
 kortex_api.autogen.client_stubs.DeviceConfigClientRpc
- __init__(router, namespace=None)¶
 Constructs a DeviceConfigClient with an initialized
RouterClientand an optional namespace.- Parameters
 router (RouterClient) –
RouterClientused for the communicationnamespace (string) – Optional namespace on which to initialize the DeviceConfigClient (defaults to
None)
- IsAlive(timeoutMs: int = 1000)¶
 Returns
Trueif the Service Server is detected online beforetimeoutMsis expired,Falseotherwise.- Parameters
 timeoutMs (unsigned int) – The maximum time to wait for an answer from the server
- Return type
 bool
- GetDeviceType(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the type for the device- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetFirmwareVersion(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device firmware version- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetBootloaderVersion(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device bootloader version- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetModelNumber(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device model number- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetPartNumber(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device part number- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetSerialNumber(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device serial number- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetMACAddress(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device MAC address- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetPartNumberRevision(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Retrieves the device part number revision- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type