Comments (2)
Hi!
In only the branch "esp32" added experimental function zh_network_get_route(). Not fully tested.
I would appreciate for the test and feedback.
In your program add task (for example):
void zh_network_get_routing(void *pvParameter)
{
typedef struct zh_network_routing_table_t
{
uint8_t original_target_mac[6];
uint8_t intermediate_target_mac[6];
} __attribute__((packed)) zh_network_routing_table_t;
zh_vector_t *route_vector = zh_network_get_route();
vTaskDelay(60000 / portTICK_PERIOD_MS); // Just wait a little while for the routing table to fill up.
for (uint16_t i = 0; i < zh_vector_get_size(route_vector); ++i)
{
zh_network_routing_table_t *routing_table = zh_vector_get_item(route_vector, i);
printf("Target MAC %02X:%02X:%02X:%02X:%02X:%02X route MAC %02X:%02X:%02X:%02X:%02X:%02X.\n", MAC2STR(routing_table->original_target_mac), MAC2STR(routing_table->intermediate_target_mac));
}
vTaskDelete(NULL);
}
And start it:
xTaskCreatePinnedToCore(&zh_network_get_routing, "zh_network_get_routing", 2048, NULL, 3, NULL, tskNO_AFFINITY);
from zh_network.
The function has been fully tested. It will be added to other branches soon. And will not be added to the example because its incorrect use may cause errors. Who needs it - will find it himself.
from zh_network.
Related Issues (9)
- Communication FAQ related question HOT 3
- corrupt heap problem HOT 1
- Arduino supported version required HOT 3
- Will ESP NOW Mesh Support 1000 nodes Connected in a line(Street Light) each 50-100 meter apart HOT 7
- Support older version of esp-idf HOT 1
- Wrap ZH_NETWORK_MAX_MESSAGE_SIZE with a ifndef HOT 1
- Cleanup includes in zh_network.h HOT 1
- esphome support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zh_network.