{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/2230","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/2230/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/2230/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/2230/events","html_url":"https://github.com/espressif/esp-idf/issues/2230","id":344998411,"node_id":"MDU6SXNzdWUzNDQ5OTg0MTE=","number":2230,"title":"[TW#24909] Sparkfun ESP32 WiFi Low Power MQTT","user":{"login":"Sedwin97","id":41026527,"node_id":"MDQ6VXNlcjQxMDI2NTI3","avatar_url":"https://avatars2.githubusercontent.com/u/41026527?v=4","gravatar_id":"","url":"https://api.github.com/users/Sedwin97","html_url":"https://github.com/Sedwin97","followers_url":"https://api.github.com/users/Sedwin97/followers","following_url":"https://api.github.com/users/Sedwin97/following{/other_user}","gists_url":"https://api.github.com/users/Sedwin97/gists{/gist_id}","starred_url":"https://api.github.com/users/Sedwin97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sedwin97/subscriptions","organizations_url":"https://api.github.com/users/Sedwin97/orgs","repos_url":"https://api.github.com/users/Sedwin97/repos","events_url":"https://api.github.com/users/Sedwin97/events{/privacy}","received_events_url":"https://api.github.com/users/Sedwin97/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-26T20:43:30Z","updated_at":"2018-09-28T23:44:06Z","closed_at":null,"author_association":"NONE","body":"Board: Sparkfun ESP32 Thing\r\nIDF version: aaf12390 \r\nDevelopment Env: esp-idf\r\nOperating System: Windows 10\r\nPower Supply: USB\r\n\r\nI'm working on research with a PhD student and I need to run an MQTT protocol with Wifi Power Save Mode on the Sparkfun ESP32 Thing board. We are using an unsecured WiFi network and simply connecting to an MQTT broker on a raspberry pi, publishing a message, and disconnecting. Two issues have come up.\r\n\r\n1. esp_mqtt_client_stop does not send a disconnect command (checking by using Wireshark)\r\nI went through the API and could not understand why this was a problem. The connect command and ack and a publish packet are sent but not the disconnects.\r\n(I'm also seeing a ton of out-of order, dup ack, and acked unseen segment packets. What might be causing that?)\r\n\r\n2. The second problem is that we need to modify a part of the U-APSD operation. I need to keep the board alive for a few ms after it would receive some data.\r\nA similar function is shown in the image. This was used on a Cypress board using WICED and allowed us to modify the return to sleep delay of the wifi power save. I've looked all over the API but wasn't able to find anything that worked similarly. Is this a supported feature?\r\n![return_to_sleep_delay](https://user-images.githubusercontent.com/41026527/43287209-27a85d38-90d9-11e8-981c-ee92e6bb0c22.PNG)\r\n\r\n\r\nHere is the code. I just mixed the power save example and the mqtt example together.\r\nhttps://gist.github.com/Sedwin97/308ab1f562fbd9984a67023ade0c194e"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/425595231","html_url":"https://github.com/espressif/esp-idf/issues/2230#issuecomment-425595231","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/2230","id":425595231,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTU5NTIzMQ==","user":{"login":"Sedwin97","id":41026527,"node_id":"MDQ6VXNlcjQxMDI2NTI3","avatar_url":"https://avatars2.githubusercontent.com/u/41026527?v=4","gravatar_id":"","url":"https://api.github.com/users/Sedwin97","html_url":"https://github.com/Sedwin97","followers_url":"https://api.github.com/users/Sedwin97/followers","following_url":"https://api.github.com/users/Sedwin97/following{/other_user}","gists_url":"https://api.github.com/users/Sedwin97/gists{/gist_id}","starred_url":"https://api.github.com/users/Sedwin97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sedwin97/subscriptions","organizations_url":"https://api.github.com/users/Sedwin97/orgs","repos_url":"https://api.github.com/users/Sedwin97/repos","events_url":"https://api.github.com/users/Sedwin97/events{/privacy}","received_events_url":"https://api.github.com/users/Sedwin97/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T23:44:06Z","updated_at":"2018-09-28T23:44:06Z","author_association":"NONE","body":"Hi @TimXia, any updates? Did you provide it on IDF?"}}
{"actor":{"display_login":"Sedwin97"}}