HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/iotwireless/create-wireless-device.rst
**To create an IoT wireless device**

The following ``create-wireless-device`` example creates a wireless device resource of the type LoRaWAN. ::

    aws iotwireless create-wireless-device \
        --cli-input-json file://input.json

Contents of ``input.json``::

    {
        "Description": "My LoRaWAN wireless device"
        "DestinationName": "IoTWirelessDestination"
        "LoRaWAN": {
            "DeviceProfileId": "ab0c23d3-b001-45ef-6a01-2bc3de4f5333",
            "ServiceProfileId": "fe98dc76-cd12-001e-2d34-5550432da100",
            "OtaaV1_1": {
                "AppKey": "3f4ca100e2fc675ea123f4eb12c4a012",
                "JoinEui": "b4c231a359bc2e3d",
                "NwkKey": "01c3f004a2d6efffe32c4eda14bcd2b4"
            },
            "DevEui": "ac12efc654d23fc2"
        },
        "Name": "SampleIoTWirelessThing"
        "Type": LoRaWAN
    }

Output::

    {
        "Arn": "arn:aws:iotwireless:us-east-1:123456789012:WirelessDevice/1ffd32c8-8130-4194-96df-622f072a315f",
        "Id": "1ffd32c8-8130-4194-96df-622f072a315f"
    }

For more information, see `Connecting devices and gateways to AWS IoT Core for LoRaWAN <https://docs.aws.amazon.com/iot/latest/developerguide/connect-iot-lorawan.html>`__ in the *AWS IoT Developers Guide*.