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.
Simulating an Uplink
Section titled “Simulating an Uplink”Provide the TestWirelessDeviceHttp implementation layer on the Function
effect, bind the device in the init phase, then call the returned client
at runtime.
// initconst testDevice = yield* AWS.IoTWireless.TestWirelessDevice(device);
// runtimeconst { Result } = yield* testDevice();// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.TestWirelessDeviceHttp))