IoTWireless.Client.
send_data_to_wireless_device
(**kwargs)¶Sends a decrypted application data frame to a device.
See also: AWS API Documentation
Request Syntax
response = client.send_data_to_wireless_device(
Id='string',
TransmitMode=123,
PayloadData='string',
WirelessMetadata={
'LoRaWAN': {
'FPort': 123,
'ParticipatingGateways': {
'DownlinkMode': 'SEQUENTIAL'|'CONCURRENT'|'USING_UPLINK_GATEWAY',
'GatewayList': [
{
'GatewayId': 'string',
'DownlinkFrequency': 123
},
],
'TransmissionInterval': 123
}
},
'Sidewalk': {
'Seq': 123,
'MessageType': 'CUSTOM_COMMAND_ID_NOTIFY'|'CUSTOM_COMMAND_ID_GET'|'CUSTOM_COMMAND_ID_SET'|'CUSTOM_COMMAND_ID_RESP',
'AckModeRetryDurationSecs': 123
}
}
)
[REQUIRED]
The ID of the wireless device to receive the data.
[REQUIRED]
The transmit mode to use to send data to the wireless device. Can be: 0
for UM (unacknowledge mode) or 1
for AM (acknowledge mode).
[REQUIRED]
The binary to be sent to the end device, encoded in base64.
Metadata about the message request.
LoRaWAN device info.
The Fport value.
Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in class B or class C mode.
Indicates whether to send the downlink message in sequential mode or concurrent mode, or to use only the chosen gateways from the previous uplink message transmission.
The list of gateways that you want to use for sending the downlink data traffic.
Gateway list item object that specifies the frequency and list of gateways for which the downlink message should be sent.
The ID of the wireless gateways that you want to add to the list of gateways when sending downlink messages.
The frequency to use for the gateways when sending a downlink message to the wireless device.
The duration of time for which AWS IoT Core for LoRaWAN will wait before transmitting the payload to the next gateway.
The Sidewalk account credentials.
The sequence number.
Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY
.
The duration of time in seconds to retry sending the ACK.
dict
Response Syntax
{
'MessageId': 'string'
}
Response Structure
(dict) --
MessageId (string) --
The ID of the message sent to the wireless device.
Exceptions
IoTWireless.Client.exceptions.ValidationException
IoTWireless.Client.exceptions.ResourceNotFoundException
IoTWireless.Client.exceptions.ThrottlingException
IoTWireless.Client.exceptions.InternalServerException