Skip to content

froks/dlt-core

Repository files navigation

Maven Central

dlt-core

dlt-core is a kotlin library to parse autosar dlt files.

It currently only supports dlt version 1.

Usage:

Add io.github.froks:dlt-core:<version> to your dependencies - see mavencentral for snippets.

Code:

DltMessageParser.parseFile(Path.of("file.dlt")).forEach { 
    val msg = it.dltMessage as? DltMessageV1
    if (msg?.extendedHeader?.apIdText != "MYAP") {
        return@forEach
    }
    // do stuff with msg
}