Skip to content

Python Example IoT 1

Ariel Rocholl edited this page Dec 22, 2016 · 5 revisions

This example shows how easily you can drive a RF Explorer IoT module using the Python library. This is a very simple, “Hello World” equivalent example to understand how RF Explorer Python library works.

What it does

Initializes the RF module, then request configuration details and check for peak signal value in Amplitude and Frequency within the default RF scanning range.

It keeps scanning for 10 seconds then program automatically close.

How to run it

Open a terminal in your Raspberry Pi and run

sudo python3.5 RFE_Example_IoT_1.py

Note you must run all python code in Raspberry Pi as superuser, otherwise the internal Raspberry Pi digital pins cannot be updated as required. This is a specific requirement from Raspberry Pi drivers, not RF Explorer.

Expected results

Clone this wiki locally