Skip to content

Twodragon0/esp32-openwrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp32-openwrt

ESP32-MDF (ESP-Mesh) and OpenWrt Socket using python3

Install

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 ESP-OpenWrt using python3

  1. Socket Communication between ESP32 and OpenWrt
  2. Gathering ESP data file
  3. We can show ESP Mac address data and message in text file
python3 socket_server.py

Connect OpenWrt-IPFS using python3

Convert txt file to IPFS (working)

  1. Convert txt file to ipfs gateway using Python3
  2. Can get IPFS data
  3. Convert All ESP data to IPFS
ipfs daemon &
python3 ipfs_http_client.py

Result: IPFS hash
Qm

Error solutions

esp-mdf toolchain error version - release v3.2.2:
espressif/esp-mdf#66

Releases

No releases published

Packages

No packages published

Languages