Closed volnyvolnyvolny closed 4 years ago
Thanks for contributing!
I believe this was corrected by #49. Would you mind running mix deps.update snmp_ex
and recompiling? I expect that will solve the problem, but let me know if you still see errors afterward.
Indeed! But I don't see 1.3.2
on hex.pm
:-)
Oops! I just published version 0.4.0 to Hex.pm. Let me know if that works.
Yes, thanks. It solves an issue!
By the way, I like the way you use
with v when is_list(v) <- value do
:binary.list_to_bin(v)
end
In a similar cases I use is_list(v) && :binary.list_to_bin(v) || v
or
if is_list(v) do
:binary.list_to_bin(v)
end || v
but it is ugly.
For what it's worth, the even shorter invocation
with v when is_list(v) <- value,
do: :binary.list_to_bin(v)
also strikes me as a reasonable substitute where a single guard and a single function call is required.
Thanks, again!
HI! Thanks for the great library!
I have a small problem using it with my MIB. Skipping the unimportant part, the problem is that
:snmp
returnsand then it is parsed with the
groom_snmp_result
. And in the first clause:you apply
:binary.list_to_bin(value)
to the integer value1
.And that gives me the error:
Is it necessary to return
binary
value? Can we addis_list(value) && :binary.list_to_bin(value) || value
?