blob: a6f4dc31284af6200e3111ace9ffa5d5981231ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Assignment preparations
# Drivers
## Install Arduino IDE
Download and install from https://www.arduino.cc/en/Main/Software. The
workshop is tested with version 1.8.5.
## Install ESP8266 board support
Follow the instructions on
https://github.com/esp8266/Arduino#installing-with-boards-manager
## Testing the Arduino installation
In the menu Tools -> Board there should be a list of "ESP8266 boards"
which should include "NodeMCU 1.0 (ESP-12E Module)".
## Install some libraries
* PubSubClient
* Time
* TimeAlarms
* WifiManager
* *DHT sensor library* by Adafruit
* *Adafruit sensor library* by Adafruit
## Install Python 3
Use your favorite package manager or download from
https://www.python.org/downloads/. Make sure `virtualenv` is
installed.
### Create a virtualenv for the assignments
On Windows you might not need the `-p python3` argument.
$ cd host
$ virtualenv -p python3 env
$ env/bin/pip install -r requirements.txt
To test that everything was properly installed run python and execute
`import asyncore`:
$ env/bin/python
Python 3.6.5rc1 (default, Mar 14 2018, 06:54:23)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncore
## Install Mosquitto
Either install Mosquitto server and client packages from your
platform's package manager or download and follow the instructions
from https://mosquitto.org/.
After installation you should have the commands `mosquitto_pub` and
`mosquitto_sub` available.
## Install Wireshark (optional)
Either install the Wireshark packages from your platform's package
manager or download and follow the instructions
https://www.wireshark.org/.
|