Questions tagged [react-native-mqtt]

4 questions
8
votes
1 answer

App crashes with the error INVALID_STATE_ERR

I am using react native. I am getting the crashes on crashlytics with the error INVALID_STATE_ERR.I am using FireBase Crashlytics. I am also using MQTT client for making web socket connection. I am not able to figure out the reason of crashing the…
Supermacy
  • 1,429
  • 15
  • 24
2
votes
1 answer

I'm working with react_native_mqtt and need to implement secure mqtt communication between client and sever

While connecting to the mqtt server I'm setting useSSL to true. 443 port is being used. I need to use SSL pinning with this call, is setting useSSL flag enough? If not then suggest me the way in which I can use SSL pinning to securely connect with…
1
vote
0 answers

Getting Multiple times same MQTT messages on single topic

I am developing an application with MQTT and here i am facing same messages are coming multiple times to the same topic instead of one message. I am using a mosquitto broker, which is also bridged to another cloud private mosquitto broker and client…
0
votes
1 answer

React Native MQTT Integration - Not able to connect broker

i am using react_native_mqtt from https://www.npmjs.com/package/react_native_mqtt to use MQTT in react native functional programming after integration not able to connect to mqtt server Can any one help on it . import { Stack, StyleSheet, View,…