For configuring devices using Pre Shared Keys.
from mbed_cloud import BootstrapAPI api = BootstrapAPI() api.add_psk(endpoint_name='your device name here', secret_hex='0123456789ABCDEF')
A module to access this section of the Pelion Device Management API.
Parameters: params – Dictionary to override configuration values
Gets the created_at of this PreSharedKey.
The date-time (RFC3339) when this pre-shared key was uploaded to Pelion Device Management.
Returns: The created_at of this PreSharedKey. Return type: datetime
The endpoint_name of this PreSharedKey.
Endpoint name is the unique ID of the pre-shared key. 16-64 printable (non-control) ASCII characters. It also must be globally unique. Consider using vendor-MAC-ID-device-model. For example “myEndpoint.host.com”
Parameters: endpoint_name – The endpoint_name of this PreSharedKey. Type: str
The secret_hex of this PreSharedKey.
The secret of the pre-shared key in HEX format. - It is not case sensitive; 4a is same as 4A - It is allowed with or without 0x in the beginning. - The minimum length of the secret is 128 bits and max 512 bits.
For example “4a4a4a4a4a4a4a4a4a4a4a4a4a4a4a4a”
Returns: The secret_hex of this PreSharedKey. Return type: str