Skip to content

ServiceProfile

Source: src/AWS/IoTWireless/ServiceProfile.ts

An AWS IoT Core for LoRaWAN service profile — the network-level parameters (data-rate bounds, gateway metadata reporting, roaming permissions) shared by a fleet of wireless devices.

Service profiles are immutable after creation: any change to name or loRaWAN replaces the profile. Only tags update in place.

Default Service Profile

import * as IoTWireless from "alchemy/AWS/IoTWireless";
const profile = yield* IoTWireless.ServiceProfile("Fleet");

Service Profile with Gateway Metadata

const profile = yield* IoTWireless.ServiceProfile("Fleet", {
loRaWAN: { AddGwMetadata: true, DrMin: 0, DrMax: 10 },
tags: { team: "iot" },
});
const device = yield* IoTWireless.WirelessDevice("Sensor", {
type: "LoRaWAN",
destinationName: destination.destinationName,
loRaWAN: {
DevEui: "1122334455667788",
ServiceProfileId: profile.serviceProfileId,
DeviceProfileId: deviceProfile.deviceProfileId,
OtaaV1_0_x: { AppKey: "...", AppEui: "..." },
},
});