IoTWireless.Client.
create_wireless_device
(**kwargs)¶Provisions a wireless device.
See also: AWS API Documentation
Request Syntax
response = client.create_wireless_device(
Type='Sidewalk'|'LoRaWAN',
Name='string',
Description='string',
DestinationName='string',
ClientRequestToken='string',
LoRaWAN={
'DevEui': 'string',
'DeviceProfileId': 'string',
'ServiceProfileId': 'string',
'OtaaV1_1': {
'AppKey': 'string',
'NwkKey': 'string',
'JoinEui': 'string'
},
'OtaaV1_0_x': {
'AppKey': 'string',
'AppEui': 'string',
'GenAppKey': 'string'
},
'AbpV1_1': {
'DevAddr': 'string',
'SessionKeys': {
'FNwkSIntKey': 'string',
'SNwkSIntKey': 'string',
'NwkSEncKey': 'string',
'AppSKey': 'string'
},
'FCntStart': 123
},
'AbpV1_0_x': {
'DevAddr': 'string',
'SessionKeys': {
'NwkSKey': 'string',
'AppSKey': 'string'
},
'FCntStart': 123
},
'FPorts': {
'Fuota': 123,
'Multicast': 123,
'ClockSync': 123,
'Positioning': {
'ClockSync': 123,
'Stream': 123,
'Gnss': 123
},
'Applications': [
{
'FPort': 123,
'Type': 'SemtechGeolocation',
'DestinationName': 'string'
},
]
}
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
Positioning='Enabled'|'Disabled'
)
[REQUIRED]
The wireless device type.
[REQUIRED]
The name of the destination to assign to the new wireless device.
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
This field is autopopulated if not provided.
The device configuration information to use to create the wireless device.
The DevEUI value.
The ID of the device profile for the new wireless device.
The ID of the service profile.
OTAA device object for v1.1 for create APIs
The AppKey value.
The NwkKey value.
The JoinEUI value.
OTAA device object for create APIs for v1.0.x
The AppKey value.
The AppEUI value.
The GenAppKey value.
ABP device object for create APIs for v1.1
The DevAddr value.
Session keys for ABP v1.1
The FNwkSIntKey value.
The SNwkSIntKey value.
The NwkSEncKey value.
The AppSKey value.
The FCnt init value.
LoRaWAN object for create APIs
The DevAddr value.
Session keys for ABP v1.0.x
The NwkSKey value.
The AppSKey value.
The FCnt init value.
List of FPort assigned for different LoRaWAN application packages to use
The Fport value.
The Fport value.
The Fport value.
FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
The Fport value.
The Fport value.
The Fport value.
Optional LoRaWAN application information, which can be used for geolocation.
LoRaWAN application configuration, which can be used to perform geolocation.
The Fport value.
Application type, which can be specified to obtain real-time position information of your LoRaWAN device.
The name of the position data destination that describes the AWS IoT rule that processes the device's position data for use by AWS IoT Core for LoRaWAN.
The tags to attach to the new wireless device. Tags are metadata that you can use to manage a resource.
A simple label consisting of a customer-defined key-value pair
The tag's key value.
The tag's value.
dict
Response Syntax
{
'Arn': 'string',
'Id': 'string'
}
Response Structure
(dict) --
Arn (string) --
The Amazon Resource Name of the new resource.
Id (string) --
The ID of the new wireless device.
Exceptions
IoTWireless.Client.exceptions.ValidationException
IoTWireless.Client.exceptions.ResourceNotFoundException
IoTWireless.Client.exceptions.AccessDeniedException
IoTWireless.Client.exceptions.ConflictException
IoTWireless.Client.exceptions.InternalServerException
IoTWireless.Client.exceptions.ThrottlingException