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.
Reading Gateway Statistics
Section titled “Reading Gateway Statistics”Provide the GetWirelessGatewayStatisticsHttp implementation layer on
the Function effect, bind the gateway in the init phase, then call the
returned client at runtime.
// initconst getStats = yield* AWS.IoTWireless.GetWirelessGatewayStatistics(gateway);
// runtimeconst stats = yield* getStats();const online = stats.ConnectionStatus === "Connected";// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.GetWirelessGatewayStatisticsHttp))