Search found 92 matches
- Thu Feb 21, 2019 2:07 pm
- Forum: ESP-MDF
- Topic: BUG / Workaround : Mesh and smart config
- Replies: 8
- Views: 14890
Re: BUG / Workaround : Mesh and smart config
Thanks. Is the smart config on the WiFi task by any chance? I wonder if this issue is related to my issue with espnow and mesh interoperability. Maybe the mesh task and the WiFi tasks don't interoperate correctly?
- Thu Feb 21, 2019 1:33 pm
- Forum: ESP-MDF
- Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
- Replies: 12
- Views: 16377
Re: ESP Mesh and ESP Now interoperability issues
Hi Thanks for getting back to me. Do you have an example of how to do this? I assume I will need to somehow create an esp-mesh-send task and have a shared queue between it and the espnow thread . Then the espnow call back adds the message to the queue and the mesh send takes it off? Sounds a bit com...
- Thu Feb 21, 2019 8:20 am
- Forum: ESP-MDF
- Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
- Replies: 12
- Views: 16377
Re: ESP Mesh and ESP Now interoperability issues
Hi
Has anyone had a chance to look at this yet? Given the simplified code below that reproduces the problem wonder if I should raise as a bug on git?
Thanks
Lee.
Has anyone had a chance to look at this yet? Given the simplified code below that reproduces the problem wonder if I should raise as a bug on git?
Thanks
Lee.
- Mon Feb 18, 2019 7:39 pm
- Forum: ESP-MDF
- Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
- Replies: 12
- Views: 16377
Re: ESP Mesh and ESP Now interoperability issues
Hi, To try and simplify the scenario, I have simplified the code in the esp now receive call back to the following.... static void cbOnESPNowReceive(const uint8_t *mac_addr, const uint8_t *data, int len) { esp_err_t err = ESP_OK; char sMessage[100] = ""; ESP_LOGI(HOMEIOT_TAG, "OnESPNowRec: Received ...
- Mon Feb 18, 2019 8:22 am
- Forum: ESP-MDF
- Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
- Replies: 12
- Views: 16377
Re: ESP Mesh and ESP Now interoperability issues
Hi, Thanks for getting back to me. The actual send line is err = esp_mesh_send(dest_addr, data, MESH_DATA_P2P, NULL, 0); In the code above, I have tried all the possible tos values and the returned error code is shown as a comment beside each as they differ depending upon which tos I set. Hope this ...
- Mon Feb 18, 2019 8:18 am
- Forum: ESP-MDF
- Topic: BUG / Workaround : Mesh and smart config
- Replies: 8
- Views: 14890
Re: BUG / Workaround : Mesh and smart config
Hi, After a lot of trial and error, I have a workaround but think there is an underlying bug. I am using the smart config example code as a template. If I call the function to do the smart config in the mesh event handler (when no parent found) either as a function call or by creating a new task, th...
- Fri Feb 15, 2019 8:25 pm
- Forum: ESP-MDF
- Topic: BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
- Replies: 12
- Views: 16377
BUG/ Workaround: ESP Mesh and ESP Now interoperability issues
Hi All, I have an ESP 32 which receives an ESP Now message from an ESP 8266 and sends the data up the mesh to the root. If the node that happens to receive the message is not root, it fails when calling esp_mesh_send. I have done a lot of debugging to try and find out the issue and have some weird r...
- Fri Feb 15, 2019 1:55 pm
- Forum: ESP-MDF
- Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
- Replies: 12
- Views: 15976
Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Thanks very much for your reply. I agree that when the struct is instantiated it has random values but once all elements have been set the important bits (eg everything in the string based variables before the \0 terminator rather than after the terminator) should be correct. So in theory unless the...
- Fri Feb 15, 2019 9:42 am
- Forum: ESP-MDF
- Topic: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
- Replies: 12
- Views: 15976
Re: BUG - v3..3 beta : esp_mesh_set_router doesn't seem to work
Thanks for your reply. I think I am closer to getting the bottom of the issue. Using this code mesh_router_t newinfo = {0}; strcpy((char*)newinfo.ssid, "XXXXXX"); strcpy((char*)newinfo.password,"YYYYYY" ); newinfo.ssid_len = strlen((char*) newinfo.ssid); memset(newinfo.bssid, '\0', 6); newinfo.allow...
- Thu Feb 14, 2019 12:11 pm
- Forum: ESP-IDF
- Topic: bug in esp_mesh_send sending to ROOT
- Replies: 5
- Views: 7376
Re: bug in esp_mesh_send sending to ROOT
Hi all
Any thoughts in this? Happy to run any further tests to help identify the issue.
Thanks
Lee.
Any thoughts in this? Happy to run any further tests to help identify the issue.
Thanks
Lee.