-
Notifications
You must be signed in to change notification settings - Fork 95
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
IOS: Request to have the check in write function if the data is Buffer data #324
Comments
Feel free to open a PR, not sure what check you removed, since the "working" code you posted has the line/content that you mention you want to remove above. I'm not entirely sure why it was done that way, but it does look a little weird that I'm converting to the |
Hi, is this resolved please? I am trying to send ATZ\r to an ELM327 device.. and that doesnt work Thank you very much for your fantastic package! |
Not sure it's resolved, the last comment was that the guy should be opening a PR if he believes he's resolved the issue. |
Hi.
it's resoled for me on IOS. I tried to send buffer data instead of string.
Regards,
Duc
DUC TRAN
Lead Software Engineer
Office: +60 3 9212 1998<tel:+60%203%209212%201998;ext=69823>x<tel:+60%203%209212%201998;ext=69823>69823<tel:+60%203%209212%201998;ext=69823> Cell: +84 9 3859 9134<tel:+83%209%203859%209134> Email: ***@***.******@***.***>
Ho Chi Minh City, Vietnam epam.com<http://www.epam.com/>
CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) to which it is addressed and contains information that is legally privileged and confidential. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. All unintended recipients are obliged to delete this message and destroy any printed copies.
…________________________________
From: Ken Davidson ***@***.***>
Sent: Monday, December 23, 2024 5:13 AM
To: kenjdavidson/react-native-bluetooth-classic ***@***.***>
Cc: Duc Tran ***@***.***>; Author ***@***.***>
Subject: Re: [kenjdavidson/react-native-bluetooth-classic] IOS: Request to have the check in write function if the data is Buffer data (Issue #324)
Not sure it's resolved, the last comment was that the guy should be opening a PR if he believes he's resolved the issue.
—
Reply to this email directly, view it on GitHub<#324 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BHPUEZOHSVQL7DEWCFBNZYD2G42QJAVCNFSM6AAAAABUAI4NVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGYZDCOBXGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Mobile Device Environment
Is your feature request related to a problem? Please describe.
Currently, the app sends Buffer data. However, the write function tries to convert it to a string, causing a failure check. As a result, the data isn't sent to the Printer device.
Describe the solution you'd like
I suggest removing the check
if let sending = String(data: data, encoding: self.encoding)
or implementing another check if the data is Buffer data.
I tried to remove the condition and it's working correctly.
Additional context
Here is the buffer data we passed to write function
The text was updated successfully, but these errors were encountered: