Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.IoTWireless.SendDataToWirelessDevice
Description
Sends a decrypted application data frame to a device.
Synopsis
- data SendDataToWirelessDevice = SendDataToWirelessDevice' {}
- newSendDataToWirelessDevice :: Text -> Natural -> Text -> SendDataToWirelessDevice
- sendDataToWirelessDevice_wirelessMetadata :: Lens' SendDataToWirelessDevice (Maybe WirelessMetadata)
- sendDataToWirelessDevice_id :: Lens' SendDataToWirelessDevice Text
- sendDataToWirelessDevice_transmitMode :: Lens' SendDataToWirelessDevice Natural
- sendDataToWirelessDevice_payloadData :: Lens' SendDataToWirelessDevice Text
- data SendDataToWirelessDeviceResponse = SendDataToWirelessDeviceResponse' {
- messageId :: Maybe Text
- httpStatus :: Int
- newSendDataToWirelessDeviceResponse :: Int -> SendDataToWirelessDeviceResponse
- sendDataToWirelessDeviceResponse_messageId :: Lens' SendDataToWirelessDeviceResponse (Maybe Text)
- sendDataToWirelessDeviceResponse_httpStatus :: Lens' SendDataToWirelessDeviceResponse Int
Creating a Request
data SendDataToWirelessDevice Source #
See: newSendDataToWirelessDevice
smart constructor.
Constructors
SendDataToWirelessDevice' | |
Fields
|
Instances
newSendDataToWirelessDevice Source #
Arguments
:: Text | |
-> Natural | |
-> Text | |
-> SendDataToWirelessDevice |
Create a value of SendDataToWirelessDevice
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:wirelessMetadata:SendDataToWirelessDevice'
, sendDataToWirelessDevice_wirelessMetadata
- Metadata about the message request.
$sel:id:SendDataToWirelessDevice'
, sendDataToWirelessDevice_id
- The ID of the wireless device to receive the data.
$sel:transmitMode:SendDataToWirelessDevice'
, sendDataToWirelessDevice_transmitMode
- 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).
$sel:payloadData:SendDataToWirelessDevice'
, sendDataToWirelessDevice_payloadData
- The binary to be sent to the end device, encoded in base64.
Request Lenses
sendDataToWirelessDevice_wirelessMetadata :: Lens' SendDataToWirelessDevice (Maybe WirelessMetadata) Source #
Metadata about the message request.
sendDataToWirelessDevice_id :: Lens' SendDataToWirelessDevice Text Source #
The ID of the wireless device to receive the data.
sendDataToWirelessDevice_transmitMode :: Lens' SendDataToWirelessDevice Natural Source #
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).
sendDataToWirelessDevice_payloadData :: Lens' SendDataToWirelessDevice Text Source #
The binary to be sent to the end device, encoded in base64.
Destructuring the Response
data SendDataToWirelessDeviceResponse Source #
See: newSendDataToWirelessDeviceResponse
smart constructor.
Constructors
SendDataToWirelessDeviceResponse' | |
Fields
|
Instances
newSendDataToWirelessDeviceResponse Source #
Create a value of SendDataToWirelessDeviceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:messageId:SendDataToWirelessDeviceResponse'
, sendDataToWirelessDeviceResponse_messageId
- The ID of the message sent to the wireless device.
$sel:httpStatus:SendDataToWirelessDeviceResponse'
, sendDataToWirelessDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
sendDataToWirelessDeviceResponse_messageId :: Lens' SendDataToWirelessDeviceResponse (Maybe Text) Source #
The ID of the message sent to the wireless device.
sendDataToWirelessDeviceResponse_httpStatus :: Lens' SendDataToWirelessDeviceResponse Int Source #
The response's http status code.