项目作者: Twodragon0

项目描述 :
ESP32-MDF (ESP-Mesh) and OpenWrt Socket
高级语言: Python
项目地址: git://github.com/Twodragon0/esp32-openwrt.git
创建时间: 2020-02-21T06:03:39Z
项目社区:https://github.com/Twodragon0/esp32-openwrt

开源协议:

下载


esp32-openwrt

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

Install

Setup & Toolchain & Path for ESP-MDF in ESP32:

  1. cd ~/esp
  2. git clone --recursive https://github.com/espressif/esp-mdf.git
  3. cd ~/esp/esp-mdf/esp-idf
  4. ./install.sh
  5. cd ~/esp/esp-mdf
  6. source export.sh

Install with python3 in OpenWrt:

  1. opkg update
  2. opkg install python3 git python3-pip
  3. git clone -b v1.0 https://github.com/Twodragon0/esp32-openwrt.git

Install with pip3:

  1. 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
  1. 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
  1. ipfs daemon &
  2. python3 ipfs_http_client.py

Result: IPFS hash
Qm

Error solutions

esp-mdf toolchain error version - release v3.2.2:
https://github.com/espressif/esp-mdf/issues/66