UpdateResourcePosition
Source:
src/AWS/IoTWireless/UpdateResourcePosition.ts
Runtime binding for iotwireless:UpdateResourcePosition — set the bound
wireless device’s static position (WGS84, as a GeoJSON payload) from a
deployed Lambda or Task.
Updating Device Position
Section titled “Updating Device Position”Provide the UpdateResourcePositionHttp implementation layer on the
Function effect, bind the device in the init phase, then call the
returned client at runtime.
// initconst updatePosition = yield* AWS.IoTWireless.UpdateResourcePosition(device);
// runtime — coordinates are [longitude, latitude, altitude]yield* updatePosition({ GeoJsonPayload: JSON.stringify({ type: "Point", coordinates: [-122.33, 47.61, 10], }),});// on the Function effect:// .pipe(Effect.provide(AWS.IoTWireless.UpdateResourcePositionHttp))