ListQueuedMessages
Source:
src/AWS/IoTWireless/ListQueuedMessages.ts
Runtime binding for iotwireless:ListQueuedMessages — list the downlink
messages queued for the bound wireless device from a deployed Lambda or
Task.
Inspecting the Downlink Queue
Section titled “Inspecting the Downlink Queue”Provide the ListQueuedMessagesHttp implementation layer on the Function
effect, bind the device in the init phase, then call the returned client
at runtime.
// initconst listQueued = yield* AWS.IoTWireless.ListQueuedMessages(device);
// runtimeconst { DownlinkQueueMessagesList } = yield* listQueued();const pending = DownlinkQueueMessagesList?.length ?? 0;// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.ListQueuedMessagesHttp))