Modbux.Model (Modbux v0.3.14)

View Source

Model helper, functions to write and read the Slave/Server DB.

Summary

Functions

apply(state, arg2)

reads(state, arg)

@spec reads(map(), {any(), any(), any(), any()}) ::
  {nil | {:error, :eaddr} | {:ok, [any()]}, map()}

write(state, arg)

@spec write(map(), {any(), any(), any(), any()}) ::
  {nil | {:error, :eaddr} | {:ok, nil}, map()}

writes(state, arg)