stm32-esp12f-smart-house
Smart house student project on stm32 and esp12f
Project structure
The project consists of
- server
- webpage (i.e. Web Control Panel)
- embedded (i.e. Stm32 project)
- client-emulator (for testing purposes)
How to build and run
Firstly, clone the repo!
git clone https://github.com/LazyPride/stm32-esp12f-smart-house.git
or with ssh
git clone git@github.com:LazyPride/stm32-esp12f-smart-house.git
Enter in the stm32-esp12f-smart-house
folder.
cd ./stm32-esp12f-smart-house
How to build and run the server
You need python3
to be installed on your PC. Go to the official website and download installer if you have Windows. It is necessary to install pip
and add python3 to the PATH.
# On Ubuntu
sudo apt install python3
Then execute next commands:
cd ./server
python3 ./server.py
Note: if you don't have the necessary python libs install them with pip!
# On Ubuntu
sudo apt install python3-pip
# Ubuntu/Windows
sudo pip3 install <library-name>
How to build and run the stm32 project
You need STM32CubeIDE to be installed on your PC. After installing I advice to to set black theme fol;owing this tutorial The next step is getting rid of tabs!
- Open STM32CubeIDE
- Go to Window -> Preferences
- Go to General -> Editor -> Text Editors
3.1. Set
Displayed tab width
to 2 3.2. MarkInsert spaces for tabs
- Go to C/C++ -> Code Style -> Formatter
4.1. Click
New...
4.2. Name it as you wish (Ex: "NoTabs") 4.3. HitOK
4.4. In the popup window setTab policy
toSpaces only
4.5. SetIndentation size
to 2 4.6. SetTab size
to 2 4.7. HitApply
,OK