Comments (3)
+1
from react-native-mqtt.
There is not quite enough information to look into your problem.
But my recommendation is if you'd like to manage the mqtt client object with redux, then it should be created and destroyed in a redux action creator as well, such that React components don't have to access MQTT-related code directly at all.
If you could provide at least your reducer and action creator, maybe I could try to help.
from react-native-mqtt.
While storing connected mqtt client to redux, its always a good idea to inject the client object to the redux store via middleware, and this feature is out of scope for this project as I guess. So I write a middleware to solve this issue, please have a look at this - https://www.npmjs.com/package/redux-mqtt
This middleware works well with this package to store mqtt client.
from react-native-mqtt.
Related Issues (20)
- AMQJSC0001E Connect timed out HOT 2
- How to connect with username and password? plz help me! HOT 1
- The automated release is failing 🚨 HOT 1
- TypeScript
- `npm install --s react_native_mqtt` Missing mqttws31.js file HOT 2
- paho mqtt version HOT 4
- INVALID_STATE_ERR is causing the device to CRASH HOT 3
- onMessageArrived not triggered HOT 2
- 无法连接,出现AMQJS0007E HOT 5
- Need to connect to mqtt server over tls HOT 1
- Example please HOT 2
- use client certificate for ssl HOT 2
- android mqtts connection failed
- Mqtt connection lost. Reconnect. Error code: 8. AMQJS0008I Socket closed. HOT 1
- MQTT connection lost when app is in background for above 1 or 2 minutes (Android)
- Update information
- AMQJS0010E localStorage is not supported by this browser - react native Expo HOT 1
- no concurrent publisher support
- mqtt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mqtt.