I am using this library to connect to an OBD device on a car. I have managed to get this working in the ionic framework, I can send requests and retrieve responses however when I send data I then get the data back chunked (or split into separate responses). For example if i send the command...
010C1\r to the device i get a response that looks like...
ME: 010C1\r
OBDII: 0C
OBDII: 003
OBDII: 2
The expected output should be...
ME: 010C1\r
OBDII: 0C0032
Here is a snippet of my code:
(I have confirmed it is not to do with the device sending the responses as it returns them in a single response using a different node library outside or cordova.
Hi,
I am using this library to connect to an OBD device on a car. I have managed to get this working in the ionic framework, I can send requests and retrieve responses however when I send data I then get the data back chunked (or split into separate responses). For example if i send the command...
010C1\r to the device i get a response that looks like...
ME: 010C1\r OBDII: 0C OBDII: 003 OBDII: 2
The expected output should be...
ME: 010C1\r OBDII: 0C0032
Here is a snippet of my code: (I have confirmed it is not to do with the device sending the responses as it returns them in a single response using a different node library outside or cordova.
I have tried playing around with buffer values but that hasnt solved anything.
Any help would be appreciated!