labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

Flush uart after getting message #238

Closed flaviut closed 2 years ago

flaviut commented 2 years ago

The internal stdout buffering causes problems when we're trying to get data, but the data doesn't have any newlines or anything like that. We're forced to wait for forever until the buffer gets filled up and output to the console.

This solves that by flushing immediately after each message.

oliviermartin commented 2 years ago

Thanks a lot @flaviut for your contribution :-)