Skip to content

GetWirelessGatewayStatistics

Source: src/AWS/IoTWireless/GetWirelessGatewayStatistics.ts

Runtime binding for iotwireless:GetWirelessGatewayStatistics — read the bound wireless gateway’s operating information (connection status, last uplink time) from a deployed Lambda or Task.

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

// init
const getStats = yield* AWS.IoTWireless.GetWirelessGatewayStatistics(gateway);
// runtime
const stats = yield* getStats();
const online = stats.ConnectionStatus === "Connected";
// on the Function effect:
// .pipe(Effect.provide(AWS.IoTWireless.GetWirelessGatewayStatisticsHttp))