SunFounder TS-10 10.1-inch Touch Screen
DEVICE_TOKEN = '__YOUR_DEVICE_TOKEN__'
Replace __YOUR_DEVICE_TOKEN__ with the Device token copied from the Cloud4RPi. Press Ctrl + X to
complete the modification.
DEVICE_TOKEN = '556UfPaRw6r6rDKYfzx5Nd1jd'
Run the sample file control.py.
sudo python3 control.py
Browse back to the Cloud4RPi server page. If your Raspberry Pi is connected to Cloud4RPi, the device information
will turn green.
Using the Cloud4RPi Control Panels
The control panel on the Cloud4RPi server provides many useful widgets for IoT applications. These widgets can be
used to control the conponents or display sensor data.
After entering Control Panels, click the New Control Panel button.
Note: Always run the control.py file before using the Control Panel.
Enter a Control Panel name, and then click on the Add Widget button.
80 Chapter 5. PROJECTS AND ACTIVITIES