I'm trying to get data from OBDII using ionic native bluetooth plugin. However, when i called write method to send the command to the device, no data was returned. The code I used is as below:
readData(device){
this.bluetoothSerial.write('010D').then( (success) => {
alert('Connected to ' + device.name + '. Data reading is successful: ' + new Uint8Array(success));
},
(error) => {
alert('reading failed:' + error );
});
}
My question is: what is the proper way to send command to OBDII to retrieve data using native plugin.