ExAIS.Decoder (ExAis v0.2.5)

View Source

Documentation for ExAIS.Decoder.

Decoder is a Genserver that receives messages and decodes them into a state.

By default Decoders decode all Ais message types but can be initialized with a list of message types to decode if you want to restrict the scope.

Example:

%{

id: :satdecoder,
module: ExAIS.Decoder,
name: :satdecoder,
batch_size: 10_000,
processor: :satprocessor,
supervisor: Portal.TaskSupervisor,
msg_types: [1, 2, 3]

}

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

decode_message(msg, map, msg_types)

decode_messages(msgs, state, msg_types)

decode_nmea(str, msg_types)

decode_tags(tag_str)

init(state)

Callback implementation for GenServer.init/1.

nmea_checksum(x)

process_group(parts, groups, msg_types)

prune_groups(groups)

start_link(opts)