Unable to send ATZ command to ELM 327 after establishing connection with ELM327 in android
I have written a code which is successfully able to find the paired OBD and establish the connection with ELM327 but when i am trying to send ATZ command the application gets crash. Here's the code snippet, I may have done wrong public HashMap<String, String> startOBDCommunicator( BluetoothSocket btSocketConnected, String paramClassName, String methodName) { HashMap<String, String> dataRetriever = new HashMap<String, String>(); sendDataToOBD(btSocketConnected, "ATZ\r"); dataRetriever.put("Reset", readDataFromOBD(btSocketConnected)); sendDataToOBD(btSocketConnected, "ATS0\r"); dataRetriever.put