Packages

A gateway for receiving and redistributing data from machine sensors

Current section

Files

Jump to
geo_gateway src geo_gateway_device_payload_parser.erl
Raw

src/geo_gateway_device_payload_parser.erl

%% @doc Describing the geo_gateway_device_payload_parser behaviour, responsible for parsing sensor
%% payloads and extract all usefull information from them.
%%
%% This data will then be transferred to any endpoint by forwarders.
-module(geo_gateway_device_payload_parser).
-author('yoan@ytotech.com').
-callback parse(Reference :: binary(), Body :: binary(), User :: map(), Devices :: map()) -> {'ok', list(), map()} | {'error', atom()}.