Giter Club home page Giter Club logo

jackalope's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jackalope's Issues

AWS IoT example

At some point, the AWS IoT SSL setup was dropped from this repository. Can this be added back? Perhaps as an example? The reason is that the SSL setup is quite complicated for anyone getting started.

Allow disabling JSON decoding

GCP doesn't use JSON and upon connect, Jackalope crashes:

08:17:00.365 [error] GenServer {Tortoise311.Registry, {Tortoise311.Connection.Controller, "projects/keep-cloud-dev/locations/us-central1/registries/test-registry/devices/test-device"}} terminating
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not an iodata term

    :erlang.iolist_to_binary(nil)
    (jason 1.2.2) lib/jason.ex:55: Jason.decode/2
    (jackalope 0.6.0) lib/jackalope/tortoise_handler.ex:54: Jackalope.TortoiseHandler.handle_message/3
    (tortoise311 0.11.3) lib/tortoise311/handler.ex:349: Tortoise311.Handler.execute/2
    (tortoise311 0.11.3) lib/tortoise311/connection/controller.ex:254: Tortoise311.Connection.Controller.handle_package/2
    (stdlib 3.17) gen_server.erl:695: :gen_server.try_dispatch/4
    (stdlib 3.17) gen_server.erl:771: :gen_server.handle_msg/6
    (stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: {:"$gen_cast", {:incoming, <<50, 31, 0, 27, 47, 100, 101, 118, 105, 99, 101, 115, 47, 116, 101, 115, 116, 45, 100, 101, 118, 105, 99, 101, 47, 99, 111, 110, 102, 105, 103, 0, 1>>}}
State: %Tortoise311.Connection.Controller{awaiting: %{}, client_id: "projects/keep-cloud-dev/locations/us-central1/registries/test-registry/devices/test-device", handler: %Tortoise311.Handler{initial_args: [handler: GoogleCloudIotCore.TortoiseHandler, jackalope_pid: #PID<0.268.0>, last_will: nil], module: Jackalope.TortoiseHandler, state: %Jackalope.TortoiseHandler{default_last_will: nil, handler: GoogleCloudIotCore.TortoiseHandler, jackalope_pid: #PID<0.268.0>}}, ping: {[], []}, status: :up}

Subcriptions not working

Thanks for creating Jackalope. We try to use it to connect to AWS IOT.
We got it running, but it seems the subscriptions we pass in are not properly passed to Tortoise311

our configuration

  Supervisor.child_spec(
        {
          Jackalope,
          subscriptions: [{"cm/v1/device/+/data", 0}]
          client_id: "cm-mqtt",
          handler: Processor.Handler,
          server: server_opts
        },
        id: Tortoise311.Connection.Parametric,
        restart: :permanent
      )

only after manually subscribing we receive data

Tortoise311.Connection.subscribe_sync("cm-mqtt", [{"cm/v1/device/+/data", 0}])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.