Writing to the NUS TX characteristic #5889
Replies: 1 comment
-
Posted at 2023-05-08 by @fanoush well, TX is output, you should write to RX Posted at 2023-05-08 by user155409 oops, good point! RX doesn't work either though, so I don't think that's the problem (I kept switching them back and forth to see if that's what was wrong :)). Posted at 2023-05-08 by @fanoush your string may be too long, sending 72bytes will and BTW there is ble uart library you may use Posted at 2023-05-08 by user155409 oh excellent--thank you so much, I will try it! Posted at 2023-05-09 by @gfwilliams You probably also need to write a newline character at the end |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-05-08 by user155409
I'm attempting to connect to the NUS service to send javascript commands to the Bangle from an external javascript file. I can see the service ['6e400001-b5a3-f393-e0a9-e50e24dcca9e'] and the TX characteristic ['6e400002-b5a3-f393-e0a9-e50e24dcca9e'] from javascript. I can even write to it, but the Bangle doesn't actually execute the commands.
This is what my JS looks like:
My callback gets called and things appear succesful, but the Bangle doesn't actually execute the JS that I sent it. Do I have to format it some other way? Do something else to actually invoke it? I'm so stumped! Any help would be amazing--thank you!
Beta Was this translation helpful? Give feedback.
All reactions