Closed rynop closed 7 years ago
@rynop what operating systems are you using?
Could you provide debug logs?
Consumer was macOS, producer was Pi Zero W. I can't seem to reproduce this problem now, if I can I will provide logs.
Is there an env var that needs to be set to provide more verbose logs? Don't see anything on the README.md..
For mac: DEBUG=* node <file>.js
, for Linux: sudo DEBUG=* node <file>.js
.
Let's close this issue for now, and when you can reproduce please re-open with any logs you collect. Thanks.
I'm using noble to consume my bleno peripheral. The data buffer I return in my
onReadRequest()
callback is somehow getting corrupted when it gets to my nobleCharacteristic.read()
. I dump the buffer right before the callback in myonReadRequest()
and I dump it right away when I get it inCharacteristic.read()
:Consumer
Producer
Producer outupt
<Buffer 07 00 00 00 00 00 c2 c9 ff ff e4 2c 00 00 1c 47 0f 00>
consumer outupt
<Buffer 07 00 00 00 00 00 c2 c9 ff ff 5f 34 00 00 5f 43 0f 00>
As you can see only part of the buffer gets corrupted. Why does this happen?