| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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.
SendDataToWirelessDevice, sendDataToWirelessDevice_id - The ID of the wireless device to receive the data.
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 - Undocumented member.
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 #
Undocumented member.
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:
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.