smartrent / grizzly

Elixir Z-Wave Library

Home Page:https://hex.pm/packages/grizzly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle <<130, 1>> from a Z-Wave device

fhunleth opened this issue · comments

Here's the log message:

11:13:01.537 [error] GenServer #PID<0.5004.0> terminating
** (FunctionClauseError) no function clause matching in Grizzly.ZWave.Decoder.from_binary/1
    (grizzly 0.12.1) lib/grizzly/zwave/decoder.ex:1: Grizzly.ZWave.Decoder.from_binary(<<130, 1>>)
    (grizzly 0.12.1) lib/grizzly/zwave/commands/zip_packet.ex:80: Grizzly.ZWave.Commands.ZIPPacket.decode_params/1
    (grizzly 0.12.1) lib/grizzly/zwave/decoder.ex:1: Grizzly.ZWave.Decoder.decode/2
    (grizzly 0.12.1) lib/grizzly/unsolicited_server/messages.ex:42: Grizzly.UnsolicitedServer.Messages.broadcast/2
    (grizzly 0.12.1) lib/grizzly/unsolicited_server/socket.ex:48: Grizzly.UnsolicitedServer.Socket.handle_info/2
    (stdlib 3.13) gen_server.erl:680: :gen_server.try_dispatch/4
    (stdlib 3.13) gen_server.erl:756: :gen_server.handle_msg/6
    (stdlib 3.13) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: {:ssl, {:sslsocket, {:gen_udp, {#PID<0.2754.0>, {{{64768, 48059, 0, 0, 0, 0, 0, 41}, 41230}, #Port<0.151>}}, :dtls_connection}, [#PID<0.12318.0>]}, <<35, 2, 0, 192, 38, 0, 0, 5, 132, 2, 0, 0, 130, 1>>}
State: %Grizzly.UnsolicitedServer.Socket.State{listen_socket: {:sslsocket, nil, {:dtls, {:config, %{middlebox_comp_mode: true, cert: :undefined, cacerts: :undefined, signature_algs: :undefined, keyfile: "", crl_check: false, verify_fun: {#Function<12.9303974/3 in :ssl.handle_options/3>, []}, alpn_preferred_protocols: :undefined, password: [], sni_fun: :undefined, max_fragment_length: :undefined, fail_if_no_peer_cert: false, cb_info: {:gen_udp, :udp, :udp_close, :udp_error, :udp_passive}, log_level: :notice, sni_hosts: [], eccs: {:elliptic_curves, [{1, 3, 132, 0, 39}, {1, 3, 132, 0, 38}, {1, 3, 132, 0, 35}, {1, 3, 36, 3, 3, 2, 8, 1, 1, 13}, {1, 3, 132, 0, 36}, {1, 3, 132, 0, 37}, {1, 3, 36, 3, 3, 2, 8, 1, 1, 11}, {1, 3, 132, 0, 34}, {1, 3, 132, 0, 16}, {1, 3, 132, 0, 17}, {1, 3, 36, 3, 3, 2, 8, 1, 1, 7}, {1, 3, 132, 0, 10}, {1, 2, 840, 10045, 3, 1, 7}, {1, 3, 132, 0, 3}, {1, 3, 132, 0, 26}, {1, 3, 132, 0, 27}, {1, 3, 132, 0, 32}, {1, 3, 132, 0, 33}, {1, 3, 132, 0, 24}, {1, 3, 132, 0, ...}, {1, 3, 132, ...}, {1, 2, ...}, {1, ...}, {...}, ...]}, erl_dist: false, dhfile: :undefined, secure_renegotiate: true, supported_groups: {:supported_groups, [:x25519, :x448, :secp256r1, :secp384r1]}, key: :undefined, cacertfile: "", customize_hostname_check: [], handshake: :full, beast_mitigation: :one_n_minus_one, psk_identity: "Client_identity", renegotiate_at: 268435456, padding_check: true, honor_ecc_order: false, honor_cipher_order: false, dh: :undefined, next_protocols_advertised: :undefined, fallback: :undefined, max_handshake_size: 262144, reuse_sessions: true, depth: 1, srp_identity: :undefined, user_lookup_fun: {#Function<0.123876537/3 in Grizzly.UnsolicitedServer."-fun.user_lookup/3-">, <<18, 52, ...>>}, session_tickets: :disabled, client_renegotiation: true, ciphers: [<<...>>], versions: [...], ...}, [{:ifaddr, {64768, 43690, 0, 0, 0, 0, 0, 2}}, :inet6, {:active, false}, {:mode, :binary}], [active: true, mode: :binary, packet: 0, packet_size: 0], :undefined, {#PID<0.2754.0>, 41230}, [{:ifaddr, {64768, 43690, 0, 0, 0, 0, 0, 2}}, :inet6, {:active, false}, {:mode, :binary}], {:gen_udp, :udp, :udp_close, :udp_error, :udp_passive}, :dtls_connection}}}}