Skip to content

Commit a8fe30c

Browse files
committed
Merge branch 'main' of https://github.com/arduino/docs-content into mcmchris/opta/datasheet-cert-canada
2 parents 7d901de + e35e2fc commit a8fe30c

File tree

8 files changed

+28
-12
lines changed

8 files changed

+28
-12
lines changed

content/arduino-cloud/07.api/02.arduino-iot-api/arduino-iot-api.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,28 @@ Before we can make requests to the API, we will need to generate an **access tok
7878

7979
![Authorization (step 1).](assets/postman-1.png)
8080

81-
Now, click on the **"Advanced Options"** tab, and add `https://api2.arduino.cc/iot` to the **"Audience"** field.
81+
- Set **"Auth Type"** to **"OAuth 2.0"** with a **"Request Header"**
82+
- Select **"Token Name"**, and **"Bearer"**
83+
84+
Then scroll down to the **"Configure New Token"**.
8285

8386
![Authorization (step 2).](assets/postman-2.png)
8487

85-
Finally, click on the **"Get New Access Token"**.
88+
- Set **"Grant Type"** to **"Client Credentials"** and set `https://api2.arduino.cc/iot/v1/clients/token` for the **"Access Token URL"**.
89+
- Add your Client ID & Client Secret (obtained in Arduino Cloud API Keys / Devices).
90+
- Set the **"Client Authentication"** to **"Send client credentials in body"**.
91+
92+
Then, click on the **"Advanced"** tab, and populate the fields according to the image below:
93+
94+
![Authorization (step 3).](assets/postman-3.png)
95+
96+
- **Key** is set to `audience`
97+
- **Value** is set to `https://api2.arduino.cc/iot`
98+
- **Send In** is set to **Request Body**
99+
100+
Finally, click on the **"Get New Access Token"**. You should get a pop-up window. On success, it should look like this:
86101

87-
![Token button.](assets/access-token.png)
102+
![Authentication complete.](assets/auth-complete.png)
88103

89104
You now have an access token that has an expiry of `300` seconds, and we can make requests to the API.
90105

Binary file not shown.
36.8 KB
Loading
5.02 KB
Loading
-272 KB
Loading
247 KB
Loading

content/hardware/03.nano/boards/nano-esp32/datasheet/datasheet.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ The SPI controller is by default assigned to the pins above.
235235

236236
### Universal Asynchronous Receiver/Transmitter (UART)
237237

238-
- D0 / TX
239-
- D1 / RX
238+
- D1 / TX
239+
- D0 / RX
240240

241241
The UART controller is by default assigned to the the pins above.
242242

@@ -343,8 +343,8 @@ The GPIOs on the Nano ESP32 can handle **source currents** up to **40 mA**, and
343343
| 11 | D2 | Digital | Digital pin 2 |
344344
| 12 | GND | Power | Ground |
345345
| 13 | RST | Internal | Reset |
346-
| 14 | D1/RX | Digital | Digital pin 1 / Serial Receiver (RX) |
347-
| 15 | D0/TX | Digital | Digital pin 0 / Serial Transmitter (TX) |
346+
| 14 | D0/RX | Digital | Digital pin 1 / Serial Receiver (RX) |
347+
| 15 | D1/TX | Digital | Digital pin 0 / Serial Transmitter (TX) |
348348

349349
\*CIPO/COPI/CS replaces the MISO/MOSI/SS terminology.
350350

@@ -738,8 +738,8 @@ SDA 和 SCL 引脚可分配给大多数 GPIO,但其中一些引脚可能具有
738738

739739
### 通用异步接收器/发射器 (UART)
740740

741-
- D0 / TX
742-
- D1 / RX
741+
- D1 / TX
742+
- D0 / RX
743743

744744
默认情况下,UART 控制器分配给上述引脚。
745745

@@ -846,8 +846,8 @@ Nano ESP32 上的 GPIO 可处理的**源电流**最高达**40 mA**,**灌电流
846846
| 11 | D2 | 数字 | 数字引脚 2 |
847847
| 12 | GND | 电源 | 接地 |
848848
| 13 | RST | 内部 | 复位 |
849-
| 14 | D1/RX | 数字 | 数字引脚 1 /串行接收器 (RX) |
850-
| 15 | D0/TX | 数字 | 数字引脚 0 / 串行发射器 (TX) |
849+
| 14 | D0/RX | 数字 | 数字引脚 1 /串行接收器 (RX) |
850+
| 15 | D1/TX | 数字 | 数字引脚 0 / 串行发射器 (TX) |
851851

852852
\*CIPO/COPI/CS 取代 MISO/MOSI/SS 术语。
853853

scripts/resources/spell-check-ignore-list.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ ser
1616
Manuel
1717
technic
1818
shiftin
19-
forsee
19+
forsee
20+
classe

0 commit comments

Comments
 (0)