{"action":"opened","issue":{"url":"https://api.github.com/repos/spark/firmware/issues/1131","repository_url":"https://api.github.com/repos/spark/firmware","labels_url":"https://api.github.com/repos/spark/firmware/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/spark/firmware/issues/1131/comments","events_url":"https://api.github.com/repos/spark/firmware/issues/1131/events","html_url":"https://github.com/spark/firmware/issues/1131","id":180468321,"number":1131,"title":"SoftAP read function issue.","user":{"login":"Suprazz","id":3640711,"avatar_url":"https://avatars.githubusercontent.com/u/3640711?v=3","gravatar_id":"","url":"https://api.github.com/users/Suprazz","html_url":"https://github.com/Suprazz","followers_url":"https://api.github.com/users/Suprazz/followers","following_url":"https://api.github.com/users/Suprazz/following{/other_user}","gists_url":"https://api.github.com/users/Suprazz/gists{/gist_id}","starred_url":"https://api.github.com/users/Suprazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suprazz/subscriptions","organizations_url":"https://api.github.com/users/Suprazz/orgs","repos_url":"https://api.github.com/users/Suprazz/repos","events_url":"https://api.github.com/users/Suprazz/events{/privacy}","received_events_url":"https://api.github.com/users/Suprazz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-01T17:16:19Z","updated_at":"2016-10-01T17:16:19Z","closed_at":null,"body":"Two continuous body->read calls in page handler of the SoftAP application won't return consecutive data except if the read is 1152 bytes long.\r\n\r\nExample: This work perfectly:\r\nuint8_t contentData[1152];\r\nuint8_t contentData2[1152];\r\nint datalength = body->read(contentData, sizeof(contentData));\r\nint datalength2 = body->read(contentData2, sizeof(contentData));\r\n\r\nWith this code, there is data lost between the 2 buffers.\r\nuint8_t contentData[512];\r\nuint8_t contentData2[512];\r\nint datalength = body->read(contentData, sizeof(contentData));\r\nint datalength2 = body->read(contentData2, sizeof(contentData));\r\n\r\nRefer to this thread for more info: https://community.particle.io/t/firmware-upgrade-via-softap/26198/11\r\n---\r\n\r\nCompleteness:\r\n- [ ] Minimum test case added\r\n- [ ] Device, system and user firmware versions stated\r\n- [ ] Particle confirmed"}}
{"actor":{"display_login":"Suprazz"}}