Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated message with Raspberry Pi #324

Closed
superlopuh opened this issue Jun 29, 2017 · 3 comments
Closed

Truncated message with Raspberry Pi #324

superlopuh opened this issue Jun 29, 2017 · 3 comments

Comments

@superlopuh
Copy link

I wrote a script that captures messages from MQTT, and forwards them via Bluetooth to an iPhone. While this worked well on the Mac, when I ran it on a Raspberry Pi, the resulting Buffer of around 240 bytes was truncated, resulting in an invalid JSON.

Since the code is the same, I doubt the bug is in bleno, but I'm wondering whether you know whether I can change something in the Bleno script to make this work.

@sandeepmistry
Copy link
Collaborator

@superlopuh please provide more details, including a simplified Node.js script to reproduce this issue. It's most likely MTU related ...

@sandeepmistry
Copy link
Collaborator

Closing due to lack of activity.

@superlopuh
Copy link
Author

Hi, I'm no longer working on this, but the code to do it all is in here:
https://github.com/snipsco/snips-mqtt-relay/blob/master/lib/ble.js
I no longer have access to the swift code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants