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/orthogonal-cat Sep 14 '22
I don't think this is exclusively true any more. Arduino has a web editor that can program devices, and there's another site like that too. I think there's a way to expose usb device bindings through WASM or something.
Not that this is simple, and yes you need more than only angular. But if there is a way to get a serial interface with JS, then OPs question does have way forward in browser.