Esp32 MESH network - Manul Networking

nicola
Posts: 22
Joined: Mon Feb 18, 2019 8:04 am

Esp32 MESH network - Manul Networking

Postby nicola » Sun Jan 19, 2020 4:24 pm

Hi,
I'm trying to create a simple mesh network using the manual networking example in esp-idf/mesh directory.
This is what I want to do:

A- Root Node
B- Parent Node
C- Leaf Node

In addition I want the root fix (no election) so I expected I had to set

Code: Select all

"esp_mesh_set_parent(1)"
but from what I see it is already set in the line :

Code: Select all

ESP_ERROR_CHECK(esp_mesh_set_parent(&parent, (mesh_addr_t *)&parent_assoc.mesh_id, my_type, my_layer)); 


For now I'm trying to make the A working. this are the step I do:

1) enable the "#define MESH_SET_ROOT" in the code

2) with make menuconfig I set the Router, PWD and auth mode of my home router

3)upload the firmware.


When the fw start it finds my access point but it seems not connected to my home router; it try to connect to anoher one (please see attcahed)


My router SSID is "Vodafone-A82282660" but it seem try to connect to "DIRECT-nB2070 series" which is not mine (please see line 8719 of attached)

I wonder if I'm making some error.
Please Help.
Awaiting your reply, thanks
Nico
Attachments
Error_Connection_To_the_router.png
Error_Connection_To_the_router.png (51.96 KiB) Viewed 1931 times

Who is online

Users browsing this forum: No registered users and 148 guests