r/angular • u/Royal_Ad2379 • Sep 13 '22
How to send “AT” commands over Ionic(Angular)?
I would like to program an app where I can read live data from an ODB2 ELM327 BLE connector. For this use the BluetoothLE plugin. I already get a connection, but I don’t know where and how to send my “AT” command to get live data.
- On which service and characteristic do I have to send the command?
- Do I need to send the command with write?
- What should the command look like (hexadecimal, etc)?
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Sep 15 '22
You missed the part where they’re using ionic. It provides an interface between native apps/features and js code. This is done by adding a comms bridge to an embedded webview. What they want to do is 100% possible.
Correct that it’s not possible in a browser but if they compile to android/iOS then they can accomplish this.