-
Notifications
You must be signed in to change notification settings - Fork 669
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
Subscribe documentation may be wrong? #435
Comments
anybody still alive here? :( |
this.bluetoothSerial.subscribe('\n',function(data){console.log(data)});
this.write("1\n"); |
I already fixed this long time back. I changed the way I was doing the
subscription and no problem from then onwards.
El mar, 26 oct 2021 a las 0:28, dzanis ***@***.***>)
escribió:
… anybody still alive here? :(
You subscribed to the data you receive in the callback until the
end-of-line character '\n' and you will not receive it until this
character is present.
Try this
this.bluetoothSerial.subscribe('\n',function(data){console.log(data)});this.write("1\n");
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAY43XQGQ3C5GXS3NRIBZMDUIXKYNANCNFSM4VHNPX5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I am trying to follow the docs regarding subscription mechanism https://github.com/don/BluetoothSerial
However, When I subscribe, my IDE indicates me the following:
Writes are working fine . If I jump to definition
The definition returns an observer, but if I subscribe to the observer nothing happens.
Is the documentation updated here?
The text was updated successfully, but these errors were encountered: