Name: nativescript-inuits-mqttlib
Owner: Inuits
Description: Nativescript plugin wrapper around android-inuits-mqttlib
Created: 2017-10-18 10:22:59.0
Updated: 2018-02-08 08:06:33.0
Pushed: 2018-01-12 17:09:59.0
Homepage: null
Size: 91
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository is simple plugin for nativescript, that exposes External Native-Android (java) code.
This repository was created because nativescript-mqtt is using customized Paho JS MQTT library, which does not work in some cases like using SSL or configuring proper HTTP Headers for protocol switch.
The callbacks are made by catching incomming Message intents.
There is simple interface with few methods that allows most of the work done in simple way. See index.js
This will connect to specified URI with custom clientId. Is clientId is not specified, underlying library will generate random UUID as client id.
This will disconnect from current connection
This will subscribe to the specified topic and call the callback when message arrives. The callbacks are handled inside this JS class. This is not shared among multiple instances.
This will unsubscribe from specified topic
This will publish message to specified topic