azholtikov / zh_network Goto Github PK
View Code? Open in Web Editor NEWESP32 ESP-IDF and ESP8266 RTOS SDK component (arduino library for ESP32 family) for ESP-NOW based mesh network.
License: Apache License 2.0
ESP32 ESP-IDF and ESP8266 RTOS SDK component (arduino library for ESP32 family) for ESP-NOW based mesh network.
License: Apache License 2.0
What is the maximum network bandwidth in your tests?
hi, i am trying to create a tool to survey the changing routing tables to have an overview over time of the routing tables seen from each nodes perspective.
is it possible to get the routing table from the example in esp32?
really nice library!!! gonna use it here: https://github.com/ingenrod/mesh
Dear Team
Can we have a Arduino supported version of this library, Or how we can use this in arduino IDE.
Please suggest.
I've created a setup with seven devices. it send a broadcast message and also send a message to a non-existent MAC address in every 0.3s.
Then I encountered a restart issue caused by a corrupted heap. sometime it happen at s_zh_network_processing. sometime it happen at s_zh_network_recv_cb. and the restart happen are so random.
here are some exception message from exception decoder
happen at s_zh_network_processing
0x40377296: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c line 408
0x4037c9a9: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c line 137
0x403826c1: __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c line 85
0x403822d1: multi_heap_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c line 259
0x40377975: heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c line 382
0x403826f1: free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c line 39
0x4200358b: zh_vector_delete_item (/Users/macbookpro/Arduino/libraries/zh_network-arduino-esp32/src/zh_vector.c line 75
0x42002b2d: s_zh_network_processing (/Users/macbookpro/Arduino/libraries/zh_network-arduino-esp32/src/zh_network.c line 20
sometime it happen at s_zh_network_recv_cb
0x40377296: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c line 408
0x4037c9a9: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c line 137
0x403826c1: __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c line 85
0x4038238d: multi_heap_realloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c line 295
0x40377a42: heap_caps_realloc_base at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c line 434
0x40377ae5: heap_caps_realloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c line 465
0x40377b13: heap_caps_realloc_default at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c line 253
0x403826e1: realloc at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c line 34
0x4200360a: zh_vector_delete_item (/Users/macbookpro/Arduino/libraries/zh_network-arduino-esp32/src/zh_vector.c line 31
0x403752f9: s_zh_network_recv_cb (/Users/macbookpro/Arduino/libraries/zh_network-arduino-esp32/src/zh_network.c line 177
0x40375379: s_zh_network_recv_cb (/Users/macbookpro/Arduino/libraries/zh_network-arduino-esp32/src/zh_network.c line 16
ZH_NETWORK_MAX_MESSAGE_SIZE
is force-set in the header.
Wrapping it with a ifndef allows setting cutom values in the compiler without modifying the file.
Almost all includes in zh_network.h can be moved to zh_network.c
Doing so helps the compiler.
You only need to keep
#include "esp_wifi.h"
in the header
Hi, is there are any plans to add support for esphome. It can be supported using external components.
This would help to create home assistant compatible sensors, relays and other nodes very easily as esphome has an easy way to build nodes.
Best regards,
Chandan
Hello,
Right now this library doesn't support espidf 4.x.x, that is used by Arduino.
Making it compatible with espidf 4.x.x only requires changing
#ifdef CONFIG_IDF_TARGET_ESP8266
by
#if defined(CONFIG_IDF_TARGET_ESP8266) || ESP_IDF_VERSION_MAJOR == 4
Doing so, the library builds without any warnings (Probably because the esp8266 is stuck with espidf4.x.x ?).
That would allow people using Arduino to use the library with espidf WiFi functions.
Also, I've read issues #3 and #4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.