2021/04/26 - AWS IoT Wireless - 1 updated api methods
Changes Add a new optional field MessageType to support Sidewalk devices in SendDataToWirelessDevice API
{'WirelessMetadata': {'Sidewalk': {'MessageType': 'CUSTOM_COMMAND_ID_NOTIFY | ' 'CUSTOM_COMMAND_ID_GET | ' 'CUSTOM_COMMAND_ID_SET | ' 'CUSTOM_COMMAND_ID_RESP'}}}
Sends a decrypted application data frame to a device.
See also: AWS API Documentation
Request Syntax
client.send_data_to_wireless_device( Id='string', TransmitMode=123, PayloadData='string', WirelessMetadata={ 'LoRaWAN': { 'FPort': 123 }, 'Sidewalk': { 'Seq': 123, 'MessageType': 'CUSTOM_COMMAND_ID_NOTIFY'|'CUSTOM_COMMAND_ID_GET'|'CUSTOM_COMMAND_ID_SET'|'CUSTOM_COMMAND_ID_RESP' } } )
string
[REQUIRED]
The ID of the wireless device to receive the data.
integer
[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).
string
[REQUIRED]
The message payload to send.
dict
Metadata about the message request.
LoRaWAN (dict) --
LoRaWAN device info.
FPort (integer) --
The Fport value.
Sidewalk (dict) --
The Sidewalk account credentials.
Seq (integer) --
The sequence number.
MessageType (string) --
Sidewalk device message type.
dict
Response Syntax
{ 'MessageId': 'string' }
Response Structure
(dict) --
MessageId (string) --
The ID of the message sent to the wireless device.