IoT & Cloud with Python·Tutorial 3 of 5

Control Your Board from the Web with Python

Intermediate

Add a switch to your PyBot Cloud dashboard and read it from your Python program, so a click on the web turns your board's LED on and off.

20 min5 steps
PythonWiFiCloudIoTDashboardLEDIntermediate
0 of 5 steps

Step 1 of 5

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.