Replies: 13 comments 11 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Yes. At this point in time the response is solely string. There was an issue opened early in the project where someone returned a byte array. You'd need to do the same thing as that yourself. I have the plan to allow writing custom parsers in the bootstrapping, but don't have the time to complete it at this point. Since the result is a string, you should be able to convert it to hex representation yourself. |
Beta Was this translation helpful? Give feedback.
-
i use method of Self-Transmitting and Self-Receiving test; but i find the data received is inconsistent with the data sent; the data is correct in writeToDevice function, but onReceivedData i get a incorrect data;can you help me check it? |
Beta Was this translation helpful? Give feedback.
-
send file:
RNBluetoothClassicModule.java
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into it, that would definitely cause you issues attempting to send HEX. I don't know how that will affect users already using as it is (as mentioned somewhere, most of the Android stuff I just pulled over from react-native-bluetooth-serial). I've slowly been re-writing to include more configuration, like adding middleware/handlers to the on and receive that can be applied to the device during the I just haven't had time to finish. also to get the same functionality on Apple, I need to rewrite a bunch of that so that its either All Swift or All Objective C. Hopefully you can work off your own changes for the time being, but I will definitely leave this open so I have another instance of configured data. |
Beta Was this translation helpful? Give feedback.
-
Did this get resolved? I am trying to also send a byte array image to my printer but getting base64 random characters. Any fix for this issue? |
Beta Was this translation helpful? Give feedback.
-
{"data": [0, 192, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3, 192, 0, 3, 224, 0, 3, 240, 0, 1, 252, 0, 1, 254, 0, 0, 127, 0, 0, 63, 0, 0, 31, 0, 0, 7, 0, 0, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 224, 0, 0, 240, 0, 0, 248, 0, 0, 252, 0, 0, 254, 0, 0, 127, 0, 0, 63, 128, 0, 31, 224, 0, 7, 240, 0, 3, 248, 0, 1, 252, 0, 0, 254, 0, 0, 127, 0, 0, 63, 128, 0, 31, 192, 0, 15, 224, 0, 7, 240, 0, 3, 248, 0, 1, 252, 128, 0, 254, 192, 0, 127, 240, 0, 63, 248, 0, 31, 60, 0, 15, 31, 0, 7, 15, 128, 3, 3, 192, 1, 1, 224, 0, 0, 248, 0, 128, 60, 0, 192, 30, 0, 224, 15, 0, 112, 7, 128, 48, 3, 224, 56, 0, 240, 28, 0, 120, 14, 0, 60, 7, 0, 30, 3, 0, 15, 3, 128, 7, 1, 192, 1, 0, 224, 0, 0, 96, 0, 0, 112, 0, 0, 56, 0, 0, 28, 0, 0, 12, 0, 0, 14, 0, 0, 7, 0, 0, 3, 0, 128, 3, 128, 224, 1, 192, 252, 0, 224, 255, 0, 224, 31, 224, 112, 7, 248, 56, 1, 255, 56, 0, 63, 220, 0, 15, 252, 0, 3, 254, 0, 0, 127, 0, 0, 31, 0, 0, 7, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 128, 0, 0, 128, 0, 0, 192, 0, 0, 192, 0, 0, 224, 0, 0, 240, 0, 0, 112, 0, 0, 56, 0, 0, 60, 0, 0, 28, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 192, 0, 0, 224, 0, 0, 112, 0, 0, 184, 0, 0, 220, 0, 0, 238, 0, 0, 119, 0, 0, 127, 128, 0, 59, 192, 0, 29, 192, 0, 14, 224, 0, 7, 112, 0, 7, 184, 0, 3, 188, 0, 1, 220, 0, 0, 238, 0, 0, 103, 0, 128, 115, 128, 192, 59, 128, 224, 25, 192, 112, 28, 224, 56, 14, 112, 28, 6, 112, 14, 7, 56, 7, 3, 156, 3, 131, 158, 1, 193, 206, 0, 224, 199, 0, 112, 231, 0, 56, 99, 0, 28, 113, 0, 14, 49, 0, 7, 56, 0, 3, 184, 0, 1, 216, 0, 0, 248, 0, 0, 124, 0, 0, 60, 128, 0, 28, 224, 0, 14, 248, 0, 15, 255, 0, 15, 255, 224, 29, 239, 255, 249, 227, 255, 248, 112, 127, 240, 48, 0, 0, 56, 0, 0, 28, 0, 0, 28, 0, 0, 14, 0, 0, 14, 0, 0, 7, 0, 0, 7, 0, 0, 3, 128, 0, 3, 128, 0, 1, 192, 0, 1, 192, 0, 0, 224, 0, 0, 224, 0, 0, 112, 0, 0, 112, 0, 0, 48, 0, 0, 56, 0, 0, 56, 0, 0, 24, 0, 0, 28, 0, 0, 28, 0, 0, 12, 0, 0, 12, 0, 0, 14, 0, 0, 14, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "type": "Buffer"} |
Beta Was this translation helpful? Give feedback.
-
They is documentation and one of the most recent forks changed some things to use hex arrays instead of strings. You can check them out.
I have to get the hexarray into the library by default a more and more twists are coming for it.
If you can test the last fork, and it works, I will pull those changes.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Dillen Erb ***@***.***>
Sent: Monday, September 13, 2021 7:46:28 AM
To: kenjdavidson/react-native-bluetooth-classic ***@***.***>
Cc: Ken Davidson ***@***.***>; State change ***@***.***>
Subject: Re: [kenjdavidson/react-native-bluetooth-classic] How to send hex to device? (Discussion #85)
{"data": [0, 192, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3, 192, 0, 3, 224, 0, 3, 240, 0, 1, 252, 0, 1, 254, 0, 0, 127, 0, 0, 63, 0, 0, 31, 0, 0, 7, 0, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 192, 0, 1, 224, 0, 1, 240, 0, 0, 248, 0, 0, 252, 0, 0, 126, 0, 0, 63, 0, 0, 31, 0, 0, 15, 128, 0, 7, 192, 0, 3, 240, 0, 1, 248, 0, 0, 252, 0, 0, 255, 0, 0, 255, 128, 0, 127, 192, 0, 63, 240, 0, 14, 248, 0, 7, 124, 0, 3, 191, 0, 1, 207, 128, 0, 231, 192, 0, 113, 240, 0, 56, 248, 0, 28, 126, 0, 14, 31, 0, 7, 15, 0, 3, 131, 0, 1, 193, 0, 0, 224, 0, 0, 112, 0, 0, 56, 0, 0, 28, 0, 0, 14, 0, 0, 14, 0, 0, 7, 0, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252, 0, 1, 255, 0, 1, 255, 0, 1, 199, 0, 1, 128, 0, 1, 192, 0, 1, 192, 0, 1, 192, 0, 0, 224, 0, 0, 224, 0, 0, 112, 0, 0, 112, 0, 0, 56, 0, 0, 60, 0, 0, 28, 0, 0, 30, 0, 0, 14, 0, 0, 7, 0, 0, 7, 0, 0, 3, 0, 0, 1, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 224, 0, 0, 240, 0, 0, 248, 0, 0, 252, 0, 0, 254, 0, 0, 127, 0, 0, 63, 128, 0, 31, 224, 0, 7, 240, 0, 3, 248, 0, 1, 252, 0, 0, 254, 0, 0, 127, 0, 0, 63, 128, 0, 31, 192, 0, 15, 224, 0, 7, 240, 0, 3, 248, 0, 1, 252, 128, 0, 254, 192, 0, 127, 240, 0, 63, 248, 0, 31, 60, 0, 15, 31, 0, 7, 15, 128, 3, 3, 192, 1, 1, 224, 0, 0, 248, 0, 128, 60, 0, 192, 30, 0, 224, 15, 0, 112, 7, 128, 48, 3, 224, 56, 0, 240, 28, 0, 120, 14, 0, 60, 7, 0, 30, 3, 0, 15, 3, 128, 7, 1, 192, 1, 0, 224, 0, 0, 96, 0, 0, 112, 0, 0, 56, 0, 0, 28, 0, 0, 12, 0, 0, 14, 0, 0, 7, 0, 0, 3, 0, 128, 3, 128, 224, 1, 192, 252, 0, 224, 255, 0, 224, 31, 224, 112, 7, 248, 56, 1, 255, 56, 0, 63, 220, 0, 15, 252, 0, 3, 254, 0, 0, 127, 0, 0, 31, 0, 0, 7, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 128, 0, 0, 128, 0, 0, 192, 0, 0, 192, 0, 0, 224, 0, 0, 240, 0, 0, 112, 0, 0, 56, 0, 0, 60, 0, 0, 28, 0, 0, 14, 0, 0, 14, 0, 0, 7, 0, 0, 3, 128, 0, 3, 128, 0, 1, 192, 0, 1, 192, 0, 0, 224, 0, 0, 96, 0, 0, 112, 0, 0, 48, 0, 0, 56, 0, 0, 24, 0, 0, 28, 0, 0, 12, 0, 0, 14, 0, 0, 6, 0, 0, 7, 0, 0, 3, 0, 0, 3, 128, 0, 1, 128, 0, 1, 128, 0, 1, 192, 0, 0, 192, 0, 0, 224, 0, 0, 96, 0, 0, 96, 0, 0, 112, 0, 0, 48, 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, 119, 0, 0, 127, 128, 0, 59, 192, 0, 29, 192, 0, 14, 224, 0, 7, 112, 0, 7, 184, 0, 3, 188, 0, 1, 220, 0, 0, 238, 0, 0, 103, 0, 128, 115, 128, 192, 59, 128, 224, 25, 192, 112, 28, 224, 56, 14, 112, 28, 6, 112, 14, 7, 56, 7, 3, 156, 3, 131, 158, 1, 193, 206, 0, 224, 199, 0, 112, 231, 0, 56, 99, 0, 28, 113, 0, 14, 49, 0, 7, 56, 0, 3, 184, 0, 1, 216, 0, 0, 248, 0, 0, 124, 0, 0, 60, 128, 0, 28, 224, 0, 14, 248, 0, 15, 255, 0, 15, 255, 224, 29, 239, 255, 249, 227, 255, 248, 112, 127, 240, 48, 0, 0, 56, 0, 0, 28, 0, 0, 28, 0, 0, 14, 0, 0, 14, 0, 0, 7, 0, 0, 7, 0, 0, 3, 128, 0, 3, 128, 0, 1, 192, 0, 1, 192, 0, 0, 224, 0, 0, 224, 0, 0, 112, 0, 0, 112, 0, 0, 48, 0, 0, 56, 0, 0, 56, 0, 0, 24, 0, 0, 28, 0, 0, 28, 0, 0, 12, 0, 0, 12, 0, 0, 14, 0, 0, 14, 0, 0, 6, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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128, 0, 195, 128, 0, 227, 192, 0, 241, 192, 0, 121, 224, 0, 56, 224, 0, 28, 240, 0, 14, 112, 0, 15, 112, 0, 7, 240, 0, 3, 240, 0, 1, 240, 0, 0, 240, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "type": "Buffer"}
This is what I am trying to send.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkenjdavidson%2Freact-native-bluetooth-classic%2Fdiscussions%2F85%23discussioncomment-1315691&data=04%7C01%7C%7C623dd2351cb64479f67708d976ac1feb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637671303905815415%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=s837SG9GjATUL7Dnwn6%2B%2FMimRxM1jmDX9ch6OHI1cr4%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPMJL3O7FRQSCGBXWFNOUTUBXQBJANCNFSM5D5T7L5Q&data=04%7C01%7C%7C623dd2351cb64479f67708d976ac1feb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637671303905815415%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mPJw3pdhXQLx53erA2PCEGspEtJcxarx%2BZv1RQ1f38Q%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C623dd2351cb64479f67708d976ac1feb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637671303905825411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dOFuUI2W1lFq7gwNyxKmHmyc1W4W5jl%2FqeXkIunW8ho%3D&reserved=0> or Android<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C623dd2351cb64479f67708d976ac1feb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637671303905825411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=22rdbAleQqhAVUvpE%2FWSNtU64zAWrnkAGSPLw4DiE%2B8%3D&reserved=0>.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@kenjdavidson I am working on allowing to write a byte array to my brother printer but all I get is a bunch of random characters. My company is willing to pay someone to add this functionality, they wanted me to ask you if you would be wiling to update this for IOS and Android and what it would cost if you had the time to do this. |
Beta Was this translation helpful? Give feedback.
-
Hey man, at this point I don't really have any time to commit to something like this (my day job is on a big time crunch). I have no problem guiding you or looking at code if you have working example(s) though. First off:
A number of users have forked this repo and updated the |
Beta Was this translation helpful? Give feedback.
-
i find write param type is String, but i need to send hex to device? how to do it?
Beta Was this translation helpful? Give feedback.
All reactions