Comments (4)
SSL is working fine with me without any major change.
i made some change in cordova-plugin-mqtt.js
Just change url to
url:"ssl://mqtt.iocarehost.com"
Aso uncommented :
var urgx = /(^(tcp|ssl|local)&?:\/\/[^\@_?!]+[^\s]+[^\.]+\:\d{2,})/g;
Also changed line no 110 to
if (args.url.split("ssl://").length > 1) {
client = new Paho.MQTT.Client(args.url.split("ssl://")[1], Number(args.wsPort), args.urlPath||"/ws", args.clientId);
}
as i only need ssl to work. It might be needed to check ssl option here and accordingly set connect function.
from cordova-plugin-mqtt.
How to add certificate can you show the working code
from cordova-plugin-mqtt.
Im not using any client side certificate. My mqtt broker only need u to specify that connection is . No need to provide any client certificate. Most broker are same way. try it.
from cordova-plugin-mqtt.
@arcoirislabs any news about ssl support?
from cordova-plugin-mqtt.
Related Issues (20)
- clean session flag support? HOT 1
- Subscribe to multiple topics. HOT 1
- Stop Listen (Un-Listen) to a topic without disconnect
- I need help, I don't know how to make it work HOT 5
- How to subscribe multiple topics ? HOT 4
- Raspberry Pi Broker
- MQTT serverConnection lost HOT 8
- I have a probelm MQTT Plugin is not working HOT 1
- Major updates Feb 2019 HOT 2
- Background Instance
- It star give error on visual studio
- Intent Service
- Publish function sometimes retain false, sometimes true HOT 2
- Can't open mqtt reconnect function
- 无法上传数据流报文 Unable to upload data stream message
- Ionic 4- Use Cordova-plugin-mqtt HOT 1
- SSL/TLS
- paho not defined HOT 2
- Client ID register as "null" by broker HOT 1
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 cordova-plugin-mqtt.