ESP_ERR_MESH_ARGUMENT When sending package to root
Posted: Wed Aug 14, 2019 4:44 pm
Hi.
I'm trying to send a package from a node to the root. I call the following function:
Where &data is just my custom payload.
I have no problem sending broadcasts from the root to the other nodes, but i can't seem to make data flow the other way, i just get ESP_ERR_MESH_ARGUMENT as return value from the send function.
I previously was using the mwifi API, and was able to send messages from the nodes to the root, but changed to just using plain ESP mesh as i was having trouble with a lot of latency when using the mwifi layer.
I'm using the latest esp-idf (39f090a4f1).
You can see the code in its entirety here:
https://gitlab.com/StefanRvO/light-equa ... e_module.c
I'm trying to send a package from a node to the root. I call the following function:
Code: Select all
esp_mesh_send(NULL, &data, 0, NULL, 0);
I have no problem sending broadcasts from the root to the other nodes, but i can't seem to make data flow the other way, i just get ESP_ERR_MESH_ARGUMENT as return value from the send function.
I previously was using the mwifi API, and was able to send messages from the nodes to the root, but changed to just using plain ESP mesh as i was having trouble with a lot of latency when using the mwifi layer.
I'm using the latest esp-idf (39f090a4f1).
You can see the code in its entirety here:
https://gitlab.com/StefanRvO/light-equa ... e_module.c