esp_mesh with platformio

jackland
Posts: 4
Joined: Mon Jan 20, 2020 5:41 pm

esp_mesh with platformio

Postby jackland » Fri May 22, 2020 9:55 am

Hi,

I'm trying to use platformio to develop some code that uses esp_mesh. Sending messages from the root node to other nodes works fine, but sending to the root node always gives 4008 (ESP_ERROR_MESH_ARGUMENT).

I've tried -
err = esp_mesh_send(NULL,&data,0,NULL,0);
err = esp_mesh_send(NULL,&data,MESH_DATA_TODS,NULL,0);
err = esp_mesh_send(NULL,&data,MESH_DATA_P2P,NULL,0);
err = esp_mesh_send(&root_address,&data,MESH_DATA_TODS,NULL,0); // root address set by MESH_EVENT_ROOT_ADDRESS

Platformio is limited to version v4.0.1 of esp-idf. Should sending to root work with this version and, if so, how to I do it ?

Thanks
Bob

Who is online

Users browsing this forum: No registered users and 22 guests