You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assignments/05-walkie-talkie-discover/index.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,14 @@ Although we will use a lot of code, you are not required to understand every lit
24
24
{: .warning }
25
25
As a prerequisite for this tutorial to work, make sure you followed and successfully completed [Tutorial 4 of the Connected Interaction Kit website](https://id-studiolab.github.io/Connected-Interaction-Kit/tutorials/03-connect-to-the-internet/) and connected your PicoExpander to the internet.
26
26
27
-
After connecting to the internet the next step is to [download the MQTT library](MQTT.zip) and move it to the ```/lib``` folder on your **CIRCUITPY drive**.
27
+
28
+
After connecting to the internet, download the MQTT library: [MQTT.zip](MQTT.zip).
29
+
Once downloaded, extract its contents to a folder.
30
+
Open the extracted MQTT folder and copy the file named ```MQTT.py``` to your the ```/lib``` folder in your **CIRCUITPY drive**.
31
+
Make sure the ```MQTT.py``` file is successfully placed in the ```/lib``` folder before proceeding to the next step.
32
+
28
33
Next we are going to update the ```settings.toml``` file in order to connect to the MQTT server.
29
-
Open de```settings.toml``` file in a **text-editor** (unfortunately mu-editor cannot open it).
34
+
Open the```settings.toml``` file in a **text-editor** (Not word, use kladblok or similar. Unfortunately mu-editor cannot open it).
30
35
31
36
```toml
32
37
CIRCUITPY_WIFI_SSID = "TUD-facility"# name of your wifi
@@ -45,7 +50,6 @@ Extend your settings.toml file with the entries for the MQTT server and fill in
45
50
When connected to an MQTT broker, a device can **subscribe** to a topic to receive data, and **publish** to a topic to send data.
46
51
Publishing sends a message to the broker, which then forwards it to all devices that are subscribed to that topic.
47
52
48
-
You can verify whether you're connected to the MQTT broker and see the messages sent through this website: [Shiftr.io](https://ide-education.cloud.shiftr.io/)
49
53
50
54
---
51
55
@@ -191,6 +195,8 @@ while True:
191
195
||
192
196
193
197
198
+
After running the code, you can verify whether you're connected to the MQTT broker and see the messages sent through this website: [Shiftr.io](https://ide-education.cloud.shiftr.io/)
199
+
194
200
## Understanding Speak and Listen Topics
195
201
196
202
In the code, you'll find two variables called `mqtt_speak_topic` and `mqtt_listen_topic`. You can use them to establish communication between walkie-talkies.
0 commit comments