- Flask through the command:
pip install Flask
- Flask-SocketIO through the command:
pip install Flask-SocketIO
wifi-ism43362
from os.mbed.com/teams/Disco-L475VG-IOT/code/wifi-ism43362/BSP_B-L475E-IOT01
from os.mbed.com/teams/ST/code/BSP_B-L475E-IOT01/
- In
main.cpp
, find the linesconst char* ssid = "ssid";
andconst char* password = "password";
and replace the placeholders with your WiFi network's ssid and password. - Also in
main.cpp
, find the line that contains the IP address "10.88.111.20", and change it to the IP address of the device that will host the Flask server. - In
app.py
, find theHOST
variable and change its value to the same IP address you used inmain.cpp
.
Simply run the file app.py
. Ensure your Flask server is running before proceeding to the next steps.
Flash the Mbed project onto the board.
After flashing the board, the device should automatically connect to the WiFi network and start communicating with the Flask server. You can check the server and Mbed Studio logs for detailed updates on the connection and interactions.
Additionally, you can connect the board to any other device or a power bank and then press the reset button to test the wireless connectivity of the board.