-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect error #6
Comments
same question |
Same, nothing happens on client.connect(...), no error, logs or anything, doesn't matter what options I try |
Any solution on this ? |
Works well on iOS, nothing at all on Android. |
same question |
Any solution on this now? |
Change the the with tcp protocal |
I had same issue. From Eclipse Paho's document ( https://www.eclipse.org/paho/files/javadoc/org/eclipse/paho/client/mqttv3/MqttConnectOptions.html#setUserName-java.lang.String- ) :
So, I think below implementation of this library is a bit wrong: https://github.com/davesters/rn-native-mqtt/blob/master/android/src/main/java/com/davesters/reactnative/mqtt/MqttClient.java#L66
|
Hi, i'm trying to get simple test of this and i'm get error when trying to connect to server, i test my own mqtt server and free public server like mosquitto, but the result its same.
Im testing this on android
I'm start my project with
npx react-native init MqttSample --template react-native-template-typescript
then i'm install the lib with:
npm install react-native-native-mqtt --save
then i run
react-native link react-native-native-mqtt
And my simple code is:
Simply, i'm test with and without typescript templates and the result its same.
The text was updated successfully, but these errors were encountered: