AWS IoT Wireless

2021/04/26 - AWS IoT Wireless - 1 updated api methods

Changes  Add a new optional field MessageType to support Sidewalk devices in SendDataToWirelessDevice API

SendDataToWirelessDevice (updated) Link ΒΆ
Changes (request)
{'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'
        }
    }
)
type Id:

string

param Id:

[REQUIRED]

The ID of the wireless device to receive the data.

type TransmitMode:

integer

param TransmitMode:

[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).

type PayloadData:

string

param PayloadData:

[REQUIRED]

The message payload to send.

type WirelessMetadata:

dict

param WirelessMetadata:

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.

rtype:

dict

returns:

Response Syntax

{
    'MessageId': 'string'
}

Response Structure

  • (dict) --

    • MessageId (string) --

      The ID of the message sent to the wireless device.