worked on the request

pull/38/head
Lateefah Bello 4 years ago
parent 8e509e19be
commit 1ca651d70b

@ -119,7 +119,7 @@ Create a Python application to print `"Hello World"` to the console.
```sh ```sh
code . code .
``` ```
> 💁 If your terminal returns `command not found` on macOS it means VS Code has not been added to PATH you can [add VS Code to PATH](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line) and run the command afterwards. VS Code is installed to PATH by default on Windows and Linux. > 💁 If your terminal returns `command not found` on macOS it means VS Code has not been added to PATH, you can [add VS Code to PATH](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line) and run the command afterwards. VS Code is installed to PATH by default on Windows and Linux.
1. When VS Code launches, it will activate the Python virtual environment. You will see this in the bottom status bar: 1. When VS Code launches, it will activate the Python virtual environment. You will see this in the bottom status bar:

@ -108,7 +108,7 @@ Let's look back at the example of the smart thermostat from Lesson 1.
***An Internet connected thermostat using multiple room sensors. Temperature by Vectors Market / Microcontroller by Template / dial by Jamie Dickinson / heater by Pascal Heß / mobile phone and Calendar by Alice-vector / Cloud by Debi Alpa Nugraha / smart sensor by Andrei Yushchenko / weather by Adrien Coquet - all from the [Noun Project](https://thenounproject.com)*** ***An Internet connected thermostat using multiple room sensors. Temperature by Vectors Market / Microcontroller by Template / dial by Jamie Dickinson / heater by Pascal Heß / mobile phone and Calendar by Alice-vector / Cloud by Debi Alpa Nugraha / smart sensor by Andrei Yushchenko / weather by Adrien Coquet - all from the [Noun Project](https://thenounproject.com)***
The thermostat has temperature sensors to gather telemetry. It would most likely have one temperature sensor built in, and it might connect to multiple external temperature sensors over a wireless protocol such as [BLE](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy) (Bluetooth Low Energy). The thermostat has temperature sensors to gather telemetry. It would most likely have one temperature sensor built in, and it might connect to multiple external temperature sensors over a wireless protocol such as [Bluetooth Low Energy](https://wikipedia.org/wiki/Bluetooth_Low_Energy) (BLE).
An example of the telemetry data it would send could be: An example of the telemetry data it would send could be:

@ -5,7 +5,7 @@ import paho.mqtt.client as mqtt
id = '<ID>' id = '<ID>'
lient_telemetry_topic = id + '/telemetry' client_telemetry_topic = id + '/telemetry'
client_name = id + 'nightlight_server' client_name = id + 'nightlight_server'
server_command_topic = id + '/commands' server_command_topic = id + '/commands'

Loading…
Cancel
Save