Skip to content

TestWirelessDevice

Source: src/AWS/IoTWireless/TestWirelessDevice.ts

Runtime binding for iotwireless:TestWirelessDevice — simulate a provisioned device by sending an uplink data payload of Hello on behalf of the bound wireless device, from a deployed Lambda or Task. Useful for verifying a destination’s routing without radio hardware.

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

// init
const testDevice = yield* AWS.IoTWireless.TestWirelessDevice(device);
// runtime
const { Result } = yield* testDevice();
// on the Function effect:
// .pipe(Effect.provide(AWS.IoTWireless.TestWirelessDeviceHttp))