ESP32-MDF (ESP-Mesh) and OpenWrt Socket using python3
Setup & Toolchain & Path for ESP-MDF in ESP32:
cd ~/esp
git clone --recursive https://github.com/espressif/esp-mdf.git
cd ~/esp/esp-mdf/esp-idf
./install.sh
cd ~/esp/esp-mdf
source export.sh
Install with python3 in OpenWrt:
opkg update
opkg install python3 git python3-pip
git clone -b v1.0 https://github.com/Twodragon0/esp32-openwrt.git
Install with pip3:
pip3 install ipfshttpclient
raspberry pi USB storage in OpenWrt:
https://openwrt.org/docs/guide-user/storage/usb-drives
- Socket Communication between ESP32 and OpenWrt
- Gathering ESP data file
- We can show ESP Mac address data and message in text file
python3 socket_server.py
Convert txt file to IPFS (working)
- Convert txt file to ipfs gateway using Python3
- Can get IPFS data
- Convert All ESP data to IPFS
ipfs daemon &
python3 ipfs_http_client.py
Result: IPFS hash
Qm
esp-mdf toolchain error version - release v3.2.2:
espressif/esp-mdf#66