Skip to content

Commit 959e362

Browse files
authored
Merge pull request #44 from id-studiolab/test
General improvements after week 5 helpdesk session
2 parents 65d1e58 + 0ecd20e commit 959e362

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • assignments/05-walkie-talkie-discover

assignments/05-walkie-talkie-discover/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ Although we will use a lot of code, you are not required to understand every lit
2424
{: .warning }
2525
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.
2626

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+
2833
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).
3035

3136
```toml
3237
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
4550
When connected to an MQTT broker, a device can **subscribe** to a topic to receive data, and **publish** to a topic to send data.
4651
Publishing sends a message to the broker, which then forwards it to all devices that are subscribed to that topic.
4752

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/)
4953

5054
---
5155

@@ -191,6 +195,8 @@ while True:
191195
| ![](walkie_talkie_state_diagram.png) |
192196

193197

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+
194200
## Understanding Speak and Listen Topics
195201

196202
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

Comments
 (0)