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 2b4bb78

Browse files
Update overview article
1 parent 82e11f5 commit 2b4bb78

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

‎content/arduino-cloud/01.getting-started/04.api-overview/api-overview.md‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ With this API, you can:
4343
As a wrapper for the Device API, we have the following libraries:
4444

4545
- An official Arduino IoT Cloud Library for your Arduino sketches: `ArduinoIoTCloud.h`
46-
- An NPM Javascript package: `arduino-iot-js`
46+
- An NPM Javascript package: `arduino-iot-js`
4747

4848
### Arduino IoT Cloud Sketch library
4949

@@ -79,6 +79,32 @@ Full examples and documentation can be found at:
7979
- The [official repository](https://github.com/arduino/arduino-iot-js)
8080
- The [NPM module](https://www.npmjs.com/package/arduino-iot-js) page
8181

82+
### MicroPython
83+
84+
The [Arduino IoT Cloud Python Client](https://github.com/arduino/arduino-iot-cloud-py) can be installed on a board running MicroPython, and is designed to be easy to use. With just a few lines of code you can connect to the cloud, using credentials obtained during the manual device configuration.
85+
86+
Below is a minimal example:
87+
88+
```python
89+
DEVICE_ID = "YOUR_DEVICE_ID"
90+
SECRET_KEY = "YOUR_SECRET_KEY"
91+
92+
client = ArduinoCloudClient(device_id=DEVICE_ID, username=DEVICE_ID, password=SECRET_KEY)
93+
94+
client.register("variable")
95+
client["variable"] = 255
96+
97+
client.start()
98+
```
99+
100+
For more information, visit the [Connecting to Arduino IoT Cloud using MicroPython](/arduino-cloud/getting-started/iot-cloud-micropython) guide.
101+
102+
### Python
103+
104+
The [Arduino IoT Cloud Python Client](https://github.com/arduino/arduino-iot-cloud-py) can also be used with regular python, and is very similar to how you connect using MicroPython, with a few adjustments.
105+
106+
To find out more about how to connect using Python, you can refer to the Python section of the [Manual Device Configuration](/arduino-cloud/getting-started/manual-device#python) guide.
107+
82108
## Backward Compatibility Policy
83109

84110
Public Arduino IoT Cloud APIs are exposing versioned endpoints and are committed to preserving compatibility with the following policies in place:

0 commit comments

Comments
(0)

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