smartrent / jackalope Goto Github PK
View Code? Open in Web Editor NEWAn opinionated MQTT client library based on Tortoise MQTT
License: Apache License 2.0
An opinionated MQTT client library based on Tortoise MQTT
License: Apache License 2.0
Google Cloud requires a jwt to be supplied with the password
field
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.
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}
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}])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.