Introvertuous / react-native-mqtt

Mqtt client for react native.
MIT License
156 stars 31 forks source link

android mqtts connect failed #8

Closed h124551753 closed 7 years ago

h124551753 commented 7 years ago

I use mqtts to connect broker, and set 'useSSL: true'; it works well with ios platform, but it not working with android. throw exception: '{invocationContext: undefined, errorCode: 7, errorMessage: "AMQJS0007E Socket error:undefined."}'

Introvertuous commented 7 years ago

This is an error on the side of the broker, not in paho or this wrapper. I assume you are using the broker in the example: "broker.hivemq.com @ 8000"

Here is a list of brokers, you will need to select a broker / port that supports ssl: https://github.com/mqtt/mqtt.github.io/wiki/public_brokers