Tomiwa-Ot / obd

Android library for getting vehicle diagnostics from ELM327 (USB/Bluetooth) connector over OBD protocol
https://tomiwa-ot.github.io/obd/
Apache License 2.0
14 stars 1 forks source link

Issue to send PID Code #2

Open davinder12 opened 2 months ago

davinder12 commented 2 months ago

Hi Tomiwa,

I used your library where I found one issue we are unable to send code when we are successfully connected with the ELM OBD device.

ISSUE Found : dataOutputStream.writeChars(command);

Solution : out = new BufferedWriter(new OutputStreamWriter(outStream), 1); out.write(msg.toCharArray());

You can connect with me on Skype if you have any issue regarding that davinder_syall or emailId : davindersyal12@gmail.com

Tomiwa-Ot commented 1 month ago

Hi Tomiwa,

I used your library where I found one issue we are unable to send code when we are successfully connected with the ELM OBD device.

ISSUE Found : dataOutputStream.writeChars(command);

Solution : out = new BufferedWriter(new OutputStreamWriter(outStream), 1); out.write(msg.toCharArray());

You can connect with me on Skype if you have any issue regarding that davinder_syall or emailId : davindersyal12@gmail.com

Can you send the full solution or make a PR?