{"action":"created","issue":{"url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/4","repository_url":"https://api.github.com/repos/yoursunny/WifiEspNow","labels_url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/4/comments","events_url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/4/events","html_url":"https://github.com/yoursunny/WifiEspNow/issues/4","id":384307271,"node_id":"MDU6SXNzdWUzODQzMDcyNzE=","number":4,"title":"ESPNow issues with Deep Sleep","user":{"login":"SrikanthBala","id":21121943,"node_id":"MDQ6VXNlcjIxMTIxOTQz","avatar_url":"https://avatars0.githubusercontent.com/u/21121943?v=4","gravatar_id":"","url":"https://api.github.com/users/SrikanthBala","html_url":"https://github.com/SrikanthBala","followers_url":"https://api.github.com/users/SrikanthBala/followers","following_url":"https://api.github.com/users/SrikanthBala/following{/other_user}","gists_url":"https://api.github.com/users/SrikanthBala/gists{/gist_id}","starred_url":"https://api.github.com/users/SrikanthBala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrikanthBala/subscriptions","organizations_url":"https://api.github.com/users/SrikanthBala/orgs","repos_url":"https://api.github.com/users/SrikanthBala/repos","events_url":"https://api.github.com/users/SrikanthBala/events{/privacy}","received_events_url":"https://api.github.com/users/SrikanthBala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-26T12:24:52Z","updated_at":"2018-11-26T17:36:49Z","closed_at":null,"author_association":"NONE","body":"I am using a ESP32 Dev Module with the Arduino IDE (1.8.5) with ESP32 core (downloaded from Boards manager)\r\nI am aiming to make a peer to peer connectivity between two ESP32 using ESPNow\r\nI am using a WifiESPNow library\r\nI am using their Unicast example with a hardcoded Peer address, giving each code the partners AP MAcID\r\n\r\nThe code works perfectly and I pick up every transmission.\r\n\r\nHowever I need to send only about 4-5 transmissions a minute and want to deep sleep in between as it is going to be LiPo battery operated (I will make a standalone ESP32 module for that)\r\n\r\nI soon realised that initializing ESPNow once and then entering light sleep (or deep sleep) doesn't work and I need to re-initalize it on every cycle. (I thought it should work with light sleep without re-initializing and this much power is OK by me). As I am basically going to do the entire process of setting up ESPNow again each time, it made sense to use deep sleep instead.\r\n\r\nDeep sleep on one of the nodes works well. It sleeps, gets up, waits for a transmission receipt or max for 250 ms and then prints the message and goes to sleep again. This also synchronises the two ESP's once a message is reached as it sends a message and goes to sleep immediately.\r\n\r\nHowever using this method on both nodes, I pick up only one in every 50 or 60 messages and the rest are lost.\r\nAny ideas on how this may be done so that at least 3-4 messages are picked up every second by both ESP's ?\r\n\r\nCode is attached. \r\n[EspNowUnicastDeepSleep.txt](https://github.com/yoursunny/WifiEspNow/files/2615463/EspNowUnicastDeepSleep.txt)\r\n\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/comments/441728311","html_url":"https://github.com/yoursunny/WifiEspNow/issues/4#issuecomment-441728311","issue_url":"https://api.github.com/repos/yoursunny/WifiEspNow/issues/4","id":441728311,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTcyODMxMQ==","user":{"login":"SrikanthBala","id":21121943,"node_id":"MDQ6VXNlcjIxMTIxOTQz","avatar_url":"https://avatars0.githubusercontent.com/u/21121943?v=4","gravatar_id":"","url":"https://api.github.com/users/SrikanthBala","html_url":"https://github.com/SrikanthBala","followers_url":"https://api.github.com/users/SrikanthBala/followers","following_url":"https://api.github.com/users/SrikanthBala/following{/other_user}","gists_url":"https://api.github.com/users/SrikanthBala/gists{/gist_id}","starred_url":"https://api.github.com/users/SrikanthBala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SrikanthBala/subscriptions","organizations_url":"https://api.github.com/users/SrikanthBala/orgs","repos_url":"https://api.github.com/users/SrikanthBala/repos","events_url":"https://api.github.com/users/SrikanthBala/events{/privacy}","received_events_url":"https://api.github.com/users/SrikanthBala/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T17:36:49Z","updated_at":"2018-11-26T17:36:49Z","author_association":"NONE","body":"Thank you for your prompt reply.\r\n1. True. A lot of unnecessary junk was sent with the code. I was trying various things to get it to work and the junk was not trimmed off. And yes I have now gone through the MCVE guidelines. Thanks for that. I try to adhere to them in the future\r\n\r\n2. I went thru your comments and had in the meanwhile found errors in my code which I will correct. Hopefully I will get it right soon.\r\n\r\n3. I have yet to go through the reference paper you sent. \r\n\r\nWill report back . Thanks again"}}
{"actor":{"display_login":"SrikanthBala"}}