nrfcloud-utils 3.3.0__tar.gz → 3.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/PKG-INFO +8 -8
  2. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/README.md +7 -7
  3. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/pyproject.toml +1 -1
  4. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/cli_helpers.py +2 -1
  5. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/LICENSE.txt +0 -0
  6. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/__init__.py +0 -0
  7. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/ca_certs.py +0 -0
  8. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/claim_and_provision_device.py +0 -0
  9. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/claim_devices.py +0 -0
  10. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/cli.py +0 -0
  11. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/create_ca_cert.py +0 -0
  12. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/create_device_credentials.py +0 -0
  13. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/create_proxy_jwt.py +0 -0
  14. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/device_credentials_installer.py +0 -0
  15. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/gather_attestation_tokens.py +0 -0
  16. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/modem_credentials_parser.py +0 -0
  17. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/nrf93_onboard.py +0 -0
  18. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/nrf_cloud_device_mgmt.py +0 -0
  19. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/nrf_cloud_diap.py +0 -0
  20. {nrfcloud_utils-3.3.0 → nrfcloud_utils-3.3.1}/src/nrfcloud_utils/nrf_cloud_onboard.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nrfcloud-utils
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: Scripts and utilities for working with the nRF Cloud
5
5
  License-Expression: BSD-3-Clause
6
6
  License-File: LICENSE.txt
@@ -55,17 +55,17 @@ Run the following command to use this package as a dependency:
55
55
  ## Requirements
56
56
 
57
57
  1. Create an account in [nrfcloud.com](https://nrfcloud.com).
58
- 2. Retrieve your API key. You can find it in your [nRF Cloud User Account page](https://app.nrfcloud.com/#/account). Note that if you are part of multiple teams on nRF Cloud, the API key will be different for each one.
58
+ 2. Retrieve your **legacy nRF Cloud API key**. Open the legacy nRF Cloud app (the **Legacy App** link at the bottom of the nRF Cloud side navigation, or [app.nrfcloud.com](https://app.nrfcloud.com/#/account) directly), then go to **User Account** > **Current Team Details**. If you are part of multiple teams, each team has its own API key.
59
+
60
+ :warning:**The User API key shown under My Profile in the new nRF Cloud app is a different key. These scripts reject it with `401 Unauthorized`.**
61
+
62
+ > [!NOTE]
63
+ > The scripts in this repository use the legacy nRF Cloud APIs. For nRF9151 and nRF9161 devices, the recommended path is [Secure Device Onboarding](https://docs.nrfcloud.com/docs/nrfcloud/secure-device-onboarding) in the new nRF Cloud app, which needs no local CA and no legacy API key. If you can't open the legacy app or its User Account page, contact [Nordic support](https://devzone.nordicsemi.com).
59
64
  3. Depending on your goal, you'll need to configure your nRF Connect SDK project with the following libraries:
60
65
 
61
66
  * **For basic device registration:** Enable the [AT Host library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/modem/at_host.html). Refer to the [AT Client sample](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/at_client/README.html) in the nRF Connect SDK for an implementation example.
62
67
 
63
- * **For using the Provisioning Service:** Enable the [Provisioning Service library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_provisioning.html). You can find more documentation about the [Provisioning Service here](https://docs.nordicsemi.com/bundle/nrf-cloud/page/SecurityServices/ProvisioningService/ProvisioningOverview.html). The nRF Connect SDK provides these illustrative samples:
64
-
65
- * **nRF Cloud Multi Service Sample:** Demonstrates onboarding alongside other cloud interactions.
66
- * [https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_cloud_multi_service](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_cloud_multi_service)
67
- * **nRF Provisioning Sample:** Provides a focused look at the provisioning steps.
68
- * [https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_provisioning](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_provisioning)
68
+ * **For using the Provisioning Service:** Enable the [Provisioning Service library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_provisioning.html). You can find more documentation about the [Provisioning Service here](https://docs.nordicsemi.com/bundle/nrf-cloud/page/SecurityServices/ProvisioningService/ProvisioningOverview.html). The nRF Connect SDK provides a [sample](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_device_provisioning) with a focused look at provisioning steps on cellular devices.
69
69
 
70
70
  4. When compiling with the nRF Cloud Libraries, make sure your project has the next Kconfig options:
71
71
 
@@ -28,17 +28,17 @@ Run the following command to use this package as a dependency:
28
28
  ## Requirements
29
29
 
30
30
  1. Create an account in [nrfcloud.com](https://nrfcloud.com).
31
- 2. Retrieve your API key. You can find it in your [nRF Cloud User Account page](https://app.nrfcloud.com/#/account). Note that if you are part of multiple teams on nRF Cloud, the API key will be different for each one.
31
+ 2. Retrieve your **legacy nRF Cloud API key**. Open the legacy nRF Cloud app (the **Legacy App** link at the bottom of the nRF Cloud side navigation, or [app.nrfcloud.com](https://app.nrfcloud.com/#/account) directly), then go to **User Account** > **Current Team Details**. If you are part of multiple teams, each team has its own API key.
32
+
33
+ :warning:**The User API key shown under My Profile in the new nRF Cloud app is a different key. These scripts reject it with `401 Unauthorized`.**
34
+
35
+ > [!NOTE]
36
+ > The scripts in this repository use the legacy nRF Cloud APIs. For nRF9151 and nRF9161 devices, the recommended path is [Secure Device Onboarding](https://docs.nrfcloud.com/docs/nrfcloud/secure-device-onboarding) in the new nRF Cloud app, which needs no local CA and no legacy API key. If you can't open the legacy app or its User Account page, contact [Nordic support](https://devzone.nordicsemi.com).
32
37
  3. Depending on your goal, you'll need to configure your nRF Connect SDK project with the following libraries:
33
38
 
34
39
  * **For basic device registration:** Enable the [AT Host library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/modem/at_host.html). Refer to the [AT Client sample](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/at_client/README.html) in the nRF Connect SDK for an implementation example.
35
40
 
36
- * **For using the Provisioning Service:** Enable the [Provisioning Service library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_provisioning.html). You can find more documentation about the [Provisioning Service here](https://docs.nordicsemi.com/bundle/nrf-cloud/page/SecurityServices/ProvisioningService/ProvisioningOverview.html). The nRF Connect SDK provides these illustrative samples:
37
-
38
- * **nRF Cloud Multi Service Sample:** Demonstrates onboarding alongside other cloud interactions.
39
- * [https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_cloud_multi_service](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_cloud_multi_service)
40
- * **nRF Provisioning Sample:** Provides a focused look at the provisioning steps.
41
- * [https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_provisioning](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_provisioning)
41
+ * **For using the Provisioning Service:** Enable the [Provisioning Service library](https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/nrf_provisioning.html). You can find more documentation about the [Provisioning Service here](https://docs.nordicsemi.com/bundle/nrf-cloud/page/SecurityServices/ProvisioningService/ProvisioningOverview.html). The nRF Connect SDK provides a [sample](https://github.com/nrfconnect/sdk-nrf/tree/main/samples/cellular/nrf_device_provisioning) with a focused look at provisioning steps on cellular devices.
42
42
 
43
43
  4. When compiling with the nRF Cloud Libraries, make sure your project has the next Kconfig options:
44
44
 
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "nrfcloud-utils"
7
- version = "3.3.0"
7
+ version = "3.3.1"
8
8
  description = "Scripts and utilities for working with the nRF Cloud"
9
9
  license = "BSD-3-Clause"
10
10
  readme = "README.md"
@@ -121,7 +121,8 @@ def save_onboarding_csv(csv_filename, append, replace, dev_id, sub_type, tags, f
121
121
 
122
122
  row_count = 0
123
123
 
124
- row = [dev_id, sub_type, tags, fw_types, str(dev, encoding=full_encoding)]
124
+ dev_text = dev if isinstance(dev, str) else str(dev, encoding=full_encoding)
125
+ row = [dev_id, sub_type, tags, fw_types, dev_text]
125
126
 
126
127
  if mode == 'a':
127
128
  do_not_write = False