Skip to content

Data getting combined incorrectly? #46

Description

@djMax

I'm using your wonderful library on OS X. I have a device which likes to send data in 256-byte or less chunks. I added an NSLog to the rfcommChannelData selector in the native side and I see these events:

2014-11-26 23:56:59.954 node[40679:338053] Received 258 from device
2014-11-26 23:57:00.013 node[40679:338053] Received 258 from device
2014-11-26 23:57:00.014 node[40679:338053] Received 156 from device

But in my data handler in node I see:
[2014-11-27 04:57:00.014 UTC] - verbose: [40679:lib/stuff.js] Received 258 bytes
[2014-11-27 04:57:00.014 UTC] - verbose: [40679:lib/stuff.js] Received 414 bytes

And the last 156 bytes of packet #2 appear to be garbage. Ideas? Could be me somehow, but not entirely sure how.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions