/// <summary> /// Parse the received data /// </summary> /// <param name="data">Received data</param> /// <param name="target">TODO : for the moment target is unused</param> void ReadData(string data, string target = null) { if (data != null && data != "" && data != "Null") { UduinoDevice uduino = uduinoDevices[target]; uduino.lastRead = data; if (uduino.callback != null) { uduino.callback(data); } else { OnValueReceived(data, target); } } }