public class MQTTHelper extends HelperBase
| Modifier and Type | Class and Description |
|---|---|
class |
MQTTHelper.MQTTClientWrapper
A wrapper for a Paho MQTT client.
|
HelperBase.DATA_TYPE_actor, _currentObj| Constructor and Description |
|---|
MQTTHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror helping)
Construct a MQTThelper for the specified JavaScript object.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultId()
Generate a default client ID randomly.
|
static MQTTHelper |
getOrCreateHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror helping)
Get or create a helper for the specified actor.
|
_appendNumericToBuffer, _appendToBuffer, _error, _error, _error, _error, _extractFromBuffer, _issueResponse, _removeDuplicates, _sizeOfType, _toJavaBytes, _toJSArray, getHelpingpublic MQTTHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror helping)
actor - The actor that this is helping.helping - The JS object that this is helping.public static MQTTHelper getOrCreateHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror helping)
actor - Either a JavaScript actor or a
RestrictedJavaScriptInterface.helping - The JavaScript object that this is helping.public static java.lang.String getDefaultId()