Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b017fc

Browse files
test
1 parent 3ea5c23 commit 4b017fc

File tree

45 files changed

+8009
-15273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+8009
-15273
lines changed

‎.npmrc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@bcmi-labs:registry=https://npm.pkg.github.com/
22
@serjlee:registry=https://npm.pkg.github.com/
33
@arduino:registry=https://npm.pkg.github.com/
4-
//npm.pkg.github.com/:_authToken=${REPO_ACCESS_TOKEN}
4+
//npm.pkg.github.com/:_authToken=${REPO_ACCESS_TOKEN}
5+
legacy-peer-deps=true

‎content/arduino-cloud/01.getting-started/01.iot-cloud-getting-started/iot-cloud-getting-started.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ Below is a list of Arduino IoT Cloud features.
3838
- [**Scheduler**](https://docs.arduino.cc/cloud/iot-cloud/tutorials/cloud-scheduler) - schedule jobs to go on/off for a specific amount of time (seconds, minutes, hours).
3939
- [**Over-The-Air (OTA) Uploads**](/cloud/iot-cloud/tutorials/ota-getting-started) - upload code to devices not connected to your computer.
4040
- [**Webhooks**](https://docs.arduino.cc/cloud/iot-cloud/tutorials/webhooks) - integrate your project with another service, such as IFTTT.
41-
- [**Amazon Alexa Support**](/cloud/iot-cloud/tutorials/alexa-mkr-rgb-shield) - make your project voice controlled with the Amazon Alexa integration.
42-
- [**Dashboard Sharing**](https://docs.arduino.cc/cloud/iot-cloud/tutorials/sharing-dashboards) - share your data with other people around the world.
41+
- [**Amazon Alexa Support**](/cloud/iot-cloud/tutorials/alexa-mkr-rgb-shield) - make your project voice controlled with the Amazon Alexa integration.
42+
- [**Dashboard Sharing**](https://docs.arduino.cc/cloud/iot-cloud/tutorials/sharing-dashboards) - share your data with other people around the world.
4343

4444
## Compatible Hardware
4545

46-
To use the Arduino IoT Cloud, a **cloud compatible board** is required. You can choose between using an official Arduino board, or a board based on the ESP32 / ESP8266 microcontroller. The Arduino IoT Cloud currently supports connection via Wi-Fi, LoRaWAN® (via The Things Network) and mobile networks.
46+
To use the Arduino IoT Cloud, a **cloud compatible board** is required. You can choose between using an official Arduino board, or a board based on the ESP32 `/` ESP8266 microcontroller. The Arduino IoT Cloud currently supports connection via Wi-Fi, LoRaWAN® (via The Things Network) and mobile networks.
4747

4848
***All cloud-compatible Arduino boards come with a hardware secure element (such as the [ECC508](/resources/datasheets/ATECC508A-datasheet.pdf) cryptochip), where you can store your security keys.***
4949

@@ -77,20 +77,20 @@ Connection via LoRaWAN® is recommended for low-power projects in both remote an
7777

7878
***To learn more about setting up LoRaWAN® devices, visit the [Configuring LoRaWAN® devices in the Arduino Cloud](/cloud/iot-cloud/tutorials/cloud-lora-getting-started) guide.***
7979

80-
### GSM / NB-IoT Boards
80+
### GSM `/` NB-IoT Boards
8181

82-
The MKR GSM 1400 and MKR NB 1500 require a **SIM card** to connect to the cloud, as they communicate over the mobile networks.
82+
The MKR GSM 1400 and MKR NB 1500 require a **SIM card** to connect to the cloud, as they communicate over the mobile networks.
8383

8484
- [MKR GSM 1400](https://store.arduino.cc/arduino-mkr-gsm-1400)
8585
- [MKR NB 1500](https://store.arduino.cc/arduino-mkr-nb-1500-1413)
8686

87-
Connection through mobile networks can be considered in remote areas where there's no Wi-Fi, or in mobile projects (such as cargo tracking).
87+
Connection through mobile networks can be considered in remote areas where there's no Wi-Fi, or in mobile projects (such as cargo tracking).
8888

8989
***For more information, visit the [Arduino SIM page](https://store.arduino.cc/digital/sim).***
9090

9191
***Note that a secured connection is a memory intense operation, so there's not a lot of memory for the user application (e.g. around 2.6 kB on the MKR GSM 1400). Using a lot of IoT Cloud variables may cause the sketch to run out of memory on boards which don't offload the SSL stack and make it crash.***
9292

93-
### ESP32 / ESP8266
93+
### ESP32 `/` ESP8266
9494

9595
The Arduino IoT Cloud supports a wide range of third party boards based on the ESP32 and ESP8266 microcontrollers with support for Wi-Fi. To set them up, simply choose the **third party option** in the device setup.
9696

@@ -166,7 +166,7 @@ To connect to a Wi-Fi network, simply click the **"Configure"** button in th
166166

167167
### 7. Editing the Sketch
168168

169-
Now that we have configured variables, devices and network settings, we can get to programming our devices!
169+
Now that we have configured variables, devices and network settings, we can get to programming our devices!
170170

171171
An automatically generated sketch file can be found in the **"Sketch"** tab. It has the same structure as a typical `.ino` file, but with some additional code to make the connection to your network and to the cloud.
172172

‎content/arduino-cloud/01.getting-started/02.technical-reference/iot-cloud-tech-ref.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ author: 'Liam Aljundi'
77

88
[Arduino IoT Cloud](https://create.arduino.cc/iot/) is a service that allows you to configure, program and deploy your Arduino devices. It is an all-in-one solution for IoT development, where you can build visual dashboards to monitor and control your devices, integrate with other services and much more.
99

10-
This article summarizes the use of the Arduino Cloud IoT, and includes information regarding requirements, installation, API and general usage of the platform.
10+
This article summarizes the use of the Arduino Cloud IoT, and includes information regarding requirements, installation, API and general usage of the platform.
1111

1212
## Compatible Hardware
1313

14-
To use the Arduino IoT Cloud, a **cloud compatible board** is required. You can choose between using an official Arduino board, or a board based on the ESP32 / ESP8266 microcontroller. The Arduino IoT Cloud currently supports connection via Wi-Fi, LoRaWAN® (via The Things Network) and mobile networks.
14+
To use the Arduino IoT Cloud, a **cloud compatible board** is required. You can choose between using an official Arduino board, or a board based on the ESP32 `/` ESP8266 microcontroller. The Arduino IoT Cloud currently supports connection via Wi-Fi, LoRaWAN® (via The Things Network) and mobile networks.
1515

1616
***All cloud-compatible Arduino boards come with a hardware secure element (such as the [ECC508](/resources/datasheets/ATECC508A-datasheet.pdf) cryptochip), where you can store your security keys.***
1717

@@ -45,12 +45,12 @@ Connection via LoRaWAN® is recommended for low-power projects in both remote an
4545

4646
### GSM / NB-IoT Boards
4747

48-
The MKR GSM 1400 and MKR NB 1500 require a **SIM card** to connect to the cloud, as they communicate over the mobile networks.
48+
The MKR GSM 1400 and MKR NB 1500 require a **SIM card** to connect to the cloud, as they communicate over the mobile networks.
4949

5050
- [MKR GSM 1400](https://store.arduino.cc/arduino-mkr-gsm-1400)
5151
- [MKR NB 1500](https://store.arduino.cc/arduino-mkr-nb-1500-1413)
5252

53-
Connection through mobile networks can be considered in remote areas where there's no Wi-Fi, or in mobile projects (such as cargo tracking).
53+
Connection through mobile networks can be considered in remote areas where there's no Wi-Fi, or in mobile projects (such as cargo tracking).
5454

5555
***For more information, visit the [Arduino SIM page](https://store.arduino.cc/digital/sim).***
5656

@@ -118,7 +118,7 @@ This feature allows for uploading sketches wirelessly to Arduino boards, without
118118
- [Portenta H7](https://store.arduino.cc/products/portenta-h7)
119119
- Cloud compatible ESP32 boards (see list below).
120120

121-
#### Verified ESP32 Boards Supporting OTA
121+
#### Verified ESP32 Boards Supporting OTA
122122

123123
The following ESP32 boards have been tested and verified to support OTA:
124124

@@ -157,7 +157,7 @@ myTimeVariable = ArduinoCloud.getLocalTime()
157157
```
158158

159159
***Note that when using a board equipped with a hardware Real-Time Clock (RTC) the [Arduino_IoTCloud](https://github.com/arduino-libraries/ArduinoIoTCloud) library will use it automatically, thus communicating with the RTC from within your sketch or other libraries is not recommended. You can use the `getLocalTime()` and `getInternalTime()` methods provided by Arduino_IoTCloud instead.
160-
***
160+
***
161161

162162
## Things
163163

@@ -416,13 +416,13 @@ A common trick is to add a **`delay(1500);` command after `Serial.begin(9600);`*
416416

417417
We provide two Arduino Iot Cloud APIs:
418418

419-
**1.** The first is the **REST API** which allows you to adding and configuring new Arduino IoT Cloud Devices, Things, Properties, as well as reading historical data. An example of this API's use is making custom dashboards in a local server. A full [documentation of the Arduino IoT Cloud REST API](https://www.arduino.cc/reference/en/iot/api/) is available for advanced users.
419+
**1.** The first is the **REST API** which allows you to adding and configuring new Arduino IoT Cloud Devices, Things, Properties, as well as reading historical data. An example of this API's use is making custom dashboards in a local server. A full [documentation of the Arduino IoT Cloud REST API](https://www.arduino.cc/reference/en/iot/api/) is available for advanced users.
420420

421421
The Arduino IoT Cloud REST API can be called just with any **HTTP Client**, or using one of these clients:
422422
- [Javascript NPM package](https://www.npmjs.com/package/@arduino/arduino-iot-client).
423423
- [Python® PYPI Package](https://pypi.org/project/arduino-iot-client/).
424424
- [Golang Module](https://github.com/arduino/iot-client-go).
425-
425+
426426
**2.** The second is the **Data API (MQTT)** which allows you to send/receive Variables' data. An example of this API's use is sending IoT Cloud Variables' updates to the browser. A full [documentation of the Arduino IoT Cloud Data API (MQTT)](https://www.npmjs.com/package/arduino-iot-js) is available for advanced users.
427427

428428

‎content/hardware/01.mkr/01.boards/mkr-gsm-1400/tutorials/securely-connecting-a-mkr-gsm-1400-to-google-cloud-iot-core/securely-connecting-a-mkr-gsm-1400-to-google-cloud-iot-core.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Devices can connect to GCP IoT Core using HTTP or [MQTT](http://mqtt.org/). This
3131

3232
Devices must use JSON Web Tokens (JWTs) for authentication, more information on JWTs can be found in [RFC 7519](https://tools.ietf.org/html/rfc7519). GCP IoT Core supports both RSA and Elliptic Curve algorithms to verify JSON Web Signatures (JWS). More information on JWS can be found in [RFC 7515](https://tools.ietf.org/html/rfc7515).
3333

34-
Every Arduino MKR board with on-board connectivity, including the MKR GSM 1400, is equipped with a Microchip [ATECC508A](https://www.microchip.com/wwwproducts/en/ATECC508A) or [ATECC608A](https://www.microchip.com/wwwproducts/en/ATECC608A) crypto element. This crypto element can be used to securely generate and store a 256-bit ECC (Elliptic Curve Cryptography) key. We'll be using a private key stored inside the crypto element to sign the JWT.
34+
Every Arduino MKR board with on-board connectivity, including the MKR GSM 1400, is equipped with a Microchip [ATECC508A](https://www.microchip.com/wwwproducts/en/ATECC508A) or [ATECC608A](https://www.microchip.com/wwwproducts/en/ATECC608A) crypto element. This crypto element can be used to securely generate and store a 256-bit ECC (Elliptic Curve Cryptography) key. We'll be using a private key stored inside the crypto element to sign the JWT.
3535

3636
### Software and Hardware Setup
3737

@@ -62,7 +62,7 @@ The private and public can be generated using an example sketch from the Arduino
6262
This sketch will prompt you to permanently configure your ATECC508A to ECC608A crypto element if it is not configured and locked.
6363

6464
***NOTE: This locking process is permanent and irreversible, but is needed to use the the crypto element - the configuration the sketch sets allows you to use 5 private key slots with any cloud provider(or server) and a private key can be regenerated any time for any of the 5 private key slots (0 - 4).***
65-
65+
6666
When the board is shipped from the factory, the crypto element is in an unconfigured and unlocked state.
6767

6868
After this, you will be prompted for what slot to use. For this tutorial we'll be using slot 0 to generate and store the private key used for a public key (slots 1 to 4 can be used to generate and store additional private keys if needed). **Note:** Since the private key is generated inside the crypto element it never leaves the device and is stored securely and cannot be read.
@@ -82,7 +82,7 @@ We will use it in a later step when adding the device to GCP IoT Core.
8282

8383
Now that we have a PEM public key, we need to login into the GCP IoT Core console and create a new device for it.
8484

85-
Open a web browser and go to <https://cloud.google.com/> and click the "Sign In" link to login with your Google ID.
85+
Open a web browser and go to [https://cloud.google.com/](https://cloud.google.com/) and click the "Sign In" link to login with your Google ID.
8686

8787
![Sign in to Google Cloud.](assets/screen_shot_2019年03月14日_at_2_30_04_pm_jofsNyf2L7.png)
8888

@@ -104,7 +104,7 @@ Open a web browser and go to <https://cloud.google.com/> and click the "Sign In"
104104
![You will be prompted to enable the API, click the "Enable API" button.](assets/screen_shot_2019年03月14日_at_2_40_13_pm_Od7PToPAm8.png)
105105

106106

107-
Once the API is enabled, you will be prompted to create a device registry.
107+
Once the API is enabled, you will be prompted to create a device registry.
108108

109109
![Click the "Create a device registry" button to proceed.](assets/screen_shot_2019年03月14日_at_2_41_50_pm_ZijtDPbdcP.png)
110110

@@ -317,7 +317,7 @@ String calculateClientId() {
317317
318318
String calculateJWT() {
319319
unsigned long now = getTime();
320-
320+
321321
// calculate the JWT, based on:
322322
// https://cloud.google.com/iot/docs/how-tos/credentials/jwts
323323
JSONVar jwtHeader;
@@ -328,7 +328,7 @@ String calculateJWT() {
328328
329329
jwtClaim["aud"] = projectId;
330330
jwtClaim["iat"] = now;
331-
jwtClaim["exp"] = now + (24L * 60L * 60L); // expires in 24 hours
331+
jwtClaim["exp"] = now + (24L * 60L * 60L); // expires in 24 hours
332332
333333
return ECCX08JWS.sign(0, JSON.stringify(jwtHeader), JSON.stringify(jwtClaim));
334334
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /