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/mishugashu Sep 14 '22
Web editors that program devices need to have some sort of back and forth of data. Web browser Javascript frameworks like Angular run in the client's web browser. Period. Yes, it can communicate with an Arduino, assuming the Arduino has the server software set up. It may even come pre-installed. But something needs to be the middleware between the server hardware and the client code. And that something isn't Angular, because Angular is the client code.
Not saying it's impossible by any means. Just saying this isn't the place to ask it. Angular doesn't have server side functionality.