clients/client-iot-wireless/README.md
AWS SDK for JavaScript IoTWireless Client for Node.js, Browser and React Native.
<p>AWS IoT Wireless provides bi-directional communication between internet-connected wireless devices and the AWS Cloud. To onboard both <a href="https://docs.aws.amazon.com/iot-wireless/latest/developerguide/iot-lorawan.html">LoRaWAN</a> and <a href="https://docs.aws.amazon.com/iot-wireless/latest/developerguide/iot-sidewalk.html">Sidewalk</a> devices to AWS IoT, use the IoT Wireless API. These wireless devices use the Low Power Wide Area Networking (LPWAN) communication protocol to communicate with AWS IoT. </p> <p>Using the API, you can perform create, read, update, and delete operations for your wireless devices, gateways, destinations, and profiles. After onboarding your devices, you can use the API operations to set log levels and monitor your devices with CloudWatch.</p> <p>You can also use the API operations to create multicast groups and schedule a multicast session for sending a downlink message to devices in the group. By using Firmware Updates Over-The-Air (FUOTA) API operations, you can create a FUOTA task and schedule a session to update the firmware of individual devices or an entire group of devices in a multicast group.</p> <p>To connect to the AWS IoT Wireless Service, use the Service endpoints as described in <a href="https://docs.aws.amazon.com/general/latest/gr/iot-lorawan.html#iot-wireless_region">IoT Wireless Service endpoints</a>. You can use both IPv4 and IPv6 protocols to connect to the endpoints and send requests to the AWS IoT Wireless service. For more information, see <a href="https://docs.aws.amazon.com/iot-wireless/latest/developerguide/wireless-ipv6-access.html">Using IPv6 with AWS IoT Wireless</a>.</p>To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-iot-wirelessyarn add @aws-sdk/client-iot-wirelesspnpm add @aws-sdk/client-iot-wirelessThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the IoTWirelessClient and
the commands you need, for example ListDestinationsCommand:
// ES5 example
const { IoTWirelessClient, ListDestinationsCommand } = require("@aws-sdk/client-iot-wireless");
// ES6+ example
import { IoTWirelessClient, ListDestinationsCommand } from "@aws-sdk/client-iot-wireless";
To send a request:
send operation on the client, providing the command object as input.const client = new IoTWirelessClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListDestinationsCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
IoTWireless extends IoTWirelessClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (IoTWirelessClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { IoTWireless } from "@aws-sdk/client-iot-wireless";
const client = new IoTWireless({ region: "REGION" });
// async/await.
try {
const data = await client.listDestinations(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listDestinations(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listDestinations(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-iot-wireless package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AssociateMulticastGroupWithFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateWirelessDeviceWithFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateWirelessDeviceWithMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateWirelessDeviceWithThing </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateWirelessGatewayWithCertificate </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateWirelessGatewayWithThing </summary>Command API Reference / Input / Output
</details> <details> <summary> CancelMulticastGroupSession </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateDeviceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateNetworkAnalyzerConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateServiceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWirelessGateway </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWirelessGatewayTask </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateWirelessGatewayTaskDefinition </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteDeviceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteNetworkAnalyzerConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteQueuedMessages </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteServiceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWirelessDeviceImportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWirelessGateway </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWirelessGatewayTask </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteWirelessGatewayTaskDefinition </summary>Command API Reference / Input / Output
</details> <details> <summary> DeregisterWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateAwsAccountFromPartnerAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateMulticastGroupFromFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateWirelessDeviceFromFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateWirelessDeviceFromMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateWirelessDeviceFromThing </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateWirelessGatewayFromCertificate </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateWirelessGatewayFromThing </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> GetDeviceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEventConfigurationByResourceTypes </summary>Command API Reference / Input / Output
</details> <details> <summary> GetFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> GetLogLevelsByResourceTypes </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMetricConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMetrics </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> GetMulticastGroupSession </summary>Command API Reference / Input / Output
</details> <details> <summary> GetNetworkAnalyzerConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetPartnerAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> GetPosition </summary>Command API Reference / Input / Output
</details> <details> <summary> GetPositionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetPositionEstimate </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourceEventConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourceLogLevel </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourcePosition </summary>Command API Reference / Input / Output
</details> <details> <summary> GetServiceEndpoint </summary>Command API Reference / Input / Output
</details> <details> <summary> GetServiceProfile </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessDeviceImportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessDeviceStatistics </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGateway </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGatewayCertificate </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGatewayFirmwareInformation </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGatewayStatistics </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGatewayTask </summary>Command API Reference / Input / Output
</details> <details> <summary> GetWirelessGatewayTaskDefinition </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDestinations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDeviceProfiles </summary>Command API Reference / Input / Output
</details> <details> <summary> ListDevicesForWirelessDeviceImportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEventConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListFuotaTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMulticastGroups </summary>Command API Reference / Input / Output
</details> <details> <summary> ListMulticastGroupsByFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> ListNetworkAnalyzerConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListPartnerAccounts </summary>Command API Reference / Input / Output
</details> <details> <summary> ListPositionConfigurations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListQueuedMessages </summary>Command API Reference / Input / Output
</details> <details> <summary> ListServiceProfiles </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWirelessDeviceImportTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWirelessDevices </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWirelessGateways </summary>Command API Reference / Input / Output
</details> <details> <summary> ListWirelessGatewayTaskDefinitions </summary>Command API Reference / Input / Output
</details> <details> <summary> PutPositionConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> PutResourceLogLevel </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetAllResourceLogLevels </summary>Command API Reference / Input / Output
</details> <details> <summary> ResetResourceLogLevel </summary>Command API Reference / Input / Output
</details> <details> <summary> SendDataToMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> SendDataToWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> StartBulkAssociateWirelessDeviceWithMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> StartBulkDisassociateWirelessDeviceFromMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> StartFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StartMulticastGroupSession </summary>Command API Reference / Input / Output
</details> <details> <summary> StartSingleWirelessDeviceImportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StartWirelessDeviceImportTask </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> TestWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateDestination </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateEventConfigurationByResourceTypes </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateFuotaTask </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateLogLevelsByResourceTypes </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateMetricConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateMulticastGroup </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateNetworkAnalyzerConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdatePartnerAccount </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdatePosition </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateResourceEventConfiguration </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateResourcePosition </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateWirelessDevice </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateWirelessDeviceImportTask </summary> </details> <details> <summary> UpdateWirelessGateway </summary> </details>