Skip to content

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.

Provide the ListQueuedMessagesHttp implementation layer on the Function effect, bind the device in the init phase, then call the returned client at runtime.

// init
const listQueued = yield* AWS.IoTWireless.ListQueuedMessages(device);
// runtime
const { DownlinkQueueMessagesList } = yield* listQueued();
const pending = DownlinkQueueMessagesList?.length ?? 0;
// on the Function effect:
// .pipe(Effect.provide(AWS.IoTWireless.ListQueuedMessagesHttp))