graphql-mqtt-subscriptions | subscriptions implementation for MQTT protocol | GraphQL library
kandi X-RAY | graphql-mqtt-subscriptions Summary
kandi X-RAY | graphql-mqtt-subscriptions Summary
graphql-subscriptions implementation for MQTT protocol
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of graphql-mqtt-subscriptions
graphql-mqtt-subscriptions Key Features
graphql-mqtt-subscriptions Examples and Code Snippets
Community Discussions
Trending Discussions on graphql-mqtt-subscriptions
QUESTION
I have a sensor node which publishes information on a specific MQTT Topic (sent to a Mosquitto broker). The data sent is a pure string.
Backendcurrently I am using apollo-server-express
to build a GraphQL Server. I wish to use `graphql-mqtt-subscriptions to:
- Subscribe to the MQTT Broker
- Read the information on a specific topic and just return it to the
graphiql
UI
dependencies
ANSWER
Answered 2019-Aug-11 at 18:16graphql-mqtt-subscriptions
:v1.2.0
now provides wild card parsing support
The wildcards like
+
and#
in thegraphql-mqtt-subscriptions
v1.1.0 on the NPM Registry are not available. However, the repository has the implementations already. The owner of the repository needs to update the registry. See Open Issue forgraphql-mqtt-subscriptions
I am currently using a complete topic for the MQTT Subscription in order to get the data from the sensor e.g.
test/1/env
as opposed totest/+/env
Previously I was sending data from the sensor in a raw string format (plain-text), hence I updated the firmware to send data in JSON String as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install graphql-mqtt-subscriptions
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page