IoT & Cloud with Python·Tutorial 4 of 5

Talk to the Web with Python

Intermediate

Use a web request in Python to ask a public web service a question and show the answer on the OLED — no PyBot Cloud device required.

15 min4 steps
PythonWiFiHTTPWebOLEDIntermediate
0 of 4 steps

Step 1 of 4

Connect your board

Power on your Beaver Board — the OLED will show a PIN code. Click Connect in the toolbar, choose Connect via Bluetooth, and select your board. If it's your first time, enter the PIN shown on the screen.

Turn on the Debug switch at the top of the Console. This tutorial uses print() to show you what is happening, and Debug keeps the connection open so you can see it.