{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1537","repository_url":"https://api.github.com/repos/espressif/arduino-esp32","labels_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1537/labels{/name}","comments_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1537/comments","events_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1537/events","html_url":"https://github.com/espressif/arduino-esp32/issues/1537","id":336002654,"node_id":"MDU6SXNzdWUzMzYwMDI2NTQ=","number":1537,"title":"BluetoothSerial silently drops bytes to be sent","user":{"login":"gohai","id":4945451,"node_id":"MDQ6VXNlcjQ5NDU0NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4945451?v=4","gravatar_id":"","url":"https://api.github.com/users/gohai","html_url":"https://github.com/gohai","followers_url":"https://api.github.com/users/gohai/followers","following_url":"https://api.github.com/users/gohai/following{/other_user}","gists_url":"https://api.github.com/users/gohai/gists{/gist_id}","starred_url":"https://api.github.com/users/gohai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gohai/subscriptions","organizations_url":"https://api.github.com/users/gohai/orgs","repos_url":"https://api.github.com/users/gohai/repos","events_url":"https://api.github.com/users/gohai/events{/privacy}","received_events_url":"https://api.github.com/users/gohai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-26T21:46:22Z","updated_at":"2018-06-27T16:29:15Z","closed_at":null,"author_association":"NONE","body":"I am using the `BluetoothSerial::write()` method to send single bytes to the host computer. I have discovered that when I am sending more that ~ 32 bytes at a time, the ESP will silently drop the additional bytes. Adding a `delay(10);` after each byte fixes this for me, but this is only a stop-gap solution.\r\n\r\nOddly, `esp_spp_write` does return `ESP_OK` even when it is dropping bytes, so I believe there is a real bug here.\r\n\r\nI am running `arduino-esp32` at c63d746a069103ccb9f6afd35fa5a21e73f1340a, with an rebuilt `libbt.a` that has a COD set so that macOS will accept the SPP device (but no other changes)."},"comment":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/comments/400742218","html_url":"https://github.com/espressif/arduino-esp32/issues/1537#issuecomment-400742218","issue_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/1537","id":400742218,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDc0MjIxOA==","user":{"login":"lyusupov","id":5849637,"node_id":"MDQ6VXNlcjU4NDk2Mzc=","avatar_url":"https://avatars2.githubusercontent.com/u/5849637?v=4","gravatar_id":"","url":"https://api.github.com/users/lyusupov","html_url":"https://github.com/lyusupov","followers_url":"https://api.github.com/users/lyusupov/followers","following_url":"https://api.github.com/users/lyusupov/following{/other_user}","gists_url":"https://api.github.com/users/lyusupov/gists{/gist_id}","starred_url":"https://api.github.com/users/lyusupov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyusupov/subscriptions","organizations_url":"https://api.github.com/users/lyusupov/orgs","repos_url":"https://api.github.com/users/lyusupov/repos","events_url":"https://api.github.com/users/lyusupov/events{/privacy}","received_events_url":"https://api.github.com/users/lyusupov/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T16:29:15Z","updated_at":"2018-06-27T16:29:15Z","author_association":"NONE","body":"@gohai: \r\n\r\n> when I am sending more that ~ 32 bytes at a time, the ESP will silently drop the additional bytes\r\n\r\ncould you, please, double check ?\r\n\r\nI am sending NMEA strings over SPP (> 32 bytes) and everything is fine to me with current Core ( IDF aaf1239 ).\r\n\r\n"}}
{"actor":{"display_login":"lyusupov"}}