Skip to content

epilif3sotnas/zeltonika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeltonika

Zeltonika is a library whose main goal is handling the data of the Teltonika trackers, which have 2 different types of data codification: JSON and binary (Teltonika Binary codecs and Teltonika JSON codec). This library is lightweight and simple to use as a decoder and encoder for these data formats.

Installation

Compatible Zig Version: 0.16.0

Zeltonika is installed with the following steps.

zig fetch --save git+https://github.com/epilif3sotnas/zeltonika#<TAG>

You can then add the dependency in your build.zig file:

const zeltonika = b.dependency("zeltonika", .{
    .target = target,
    .optimize = optimize,
}).module("zeltonika");

exe.root_module.addImport(zeltonika);

Usage

Zeltonika is used in the following example.

const zeltonika = try Zeltonika.init(allocator, config);
defer zeltonika.deinit();

const encoded_tcp = try zeltonika.encodeTcp(data);
const encoded_udp = try zeltonika.encodeUdp(data);

const decoded_tcp = try zeltonika.decodeTcp(data);
const decoded_udp = try zeltonika.decodeUdp(data);

See this examples.

FAQ

Zeltonika FAQ.

Changelog

See our changelog to check the modifications for each version.

Contributing

See our contributing docs to be part of our contributors.

Code of Conduct

This repository does not tolerate any disrectuful behavior. See our code of conduct.

License

Licensed under Apache-2.0 license.

About

Library to parse Teltonika codecs.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published