Server Installation
Server Installation
i. You can install the application using this link XAMPP Installers and
Downloads for Apache Friends
ii. After installation, you shall find a new folder created in the path:
C:\xampp\htdocs on your PC.
iii. Download this folder
(Link:https://drive.google.com/drive/folders/1nyTrXNFrcfLPn4mouMKo9s8XM
X2hqLC5?usp=sharing ) and place it in the htdocs created folder.
i. You shall find the needed python files in this link: youssefnashaatt/Firmware-
Over-The-Air at Server (github.com)
ii. Download the files and open them in any preferred IDE.
iii. Libraries to be included are:
- Paho-mqtt==1.5.1
- Pycryptodome==3.20.0
Important Note: You shall use python 3.12 (32-bit) to be able to run the script.
3. Download Arduino IDE
(This step is just to be able to edit the code; change WiFi SSID and password based
on your current network.)
ii. Include ESP8266 board libraries: Tools -> Board -> Board Manager -> Search
for esp8266 and install the library.
iii. Include MQTT libraries: Sketch -> Include Library -> Manage Libraries ->
Search for PubSubClient and install it. (Should be by Nick O’Leary).
iv. Adjust the port based on where the board is connected: Tools -> Port ->
COM3 / COM4 / COM5.
v. Now edit WiFi SSID and password and your IP address in the code based on
your current network. (You shall find the meant variables in lines 28, 29,
31).
Note:
You can track the UART of the NodeMCU by opening Serial Monitor in Arduino
IDE. (Tools -> Serial Monitor).