{"action":"opened","issue":{"url":"https://api.github.com/repos/spark/firmware/issues/407","labels_url":"https://api.github.com/repos/spark/firmware/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/spark/firmware/issues/407/comments","events_url":"https://api.github.com/repos/spark/firmware/issues/407/events","html_url":"https://github.com/spark/firmware/issues/407","id":63333423,"number":407,"title":"UDP.write should buffer and nothing should be sent until UDP.endPacket","user":{"login":"jnm2","id":8040367,"avatar_url":"https://avatars.githubusercontent.com/u/8040367?v=3","gravatar_id":"","url":"https://api.github.com/users/jnm2","html_url":"https://github.com/jnm2","followers_url":"https://api.github.com/users/jnm2/followers","following_url":"https://api.github.com/users/jnm2/following{/other_user}","gists_url":"https://api.github.com/users/jnm2/gists{/gist_id}","starred_url":"https://api.github.com/users/jnm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnm2/subscriptions","organizations_url":"https://api.github.com/users/jnm2/orgs","repos_url":"https://api.github.com/users/jnm2/repos","events_url":"https://api.github.com/users/jnm2/events{/privacy}","received_events_url":"https://api.github.com/users/jnm2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T23:50:29Z","updated_at":"2015-03-20T23:50:29Z","closed_at":null,"body":"`UDP.parsePacket` and `UDP.read` are broken. The Spark will sometimes receive incoming packets `AAA`, `BBBBB` as `AAABBBBB`. I need to be able to rely on the return from parsePacket to tell be the length of the next unread packet.\r\n\r\nIt's an embarrassment for a serious library to get the basic UDP fundamentals wrong. This will give newbies a skewed idea of UDP and will frustrate people who know what they are doing. Please fix this.\r\n"}}