Giter VIP home page Giter VIP logo

zh_network's Issues

how to get routing table ?

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

corrupt heap problem

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

Cleanup includes in zh_network.h

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

esphome support

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

Support older version of esp-idf

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.