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.
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);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.
Zeltonika FAQ.
See our changelog to check the modifications for each version.
See our contributing docs to be part of our contributors.
This repository does not tolerate any disrectuful behavior. See our code of conduct.
Licensed under Apache-2.0 license.