Skip to content

Adding timeout and qos options and adding example thing speak #9

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="javasource"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/biz.aQute.bnd.bndlib.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/com.mendix.json.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/com.mendix.logging-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/com.mendix.m2ee-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/com.mendix.public-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/7.0.2/runtime/bundles/javax.servlet.jar"/>
<classpathentry kind="lib" path="userlib/antisamy-1.5.3.jar"/><classpathentry kind="lib" path="userlib/aopalliance-1.0.jar"/><classpathentry kind="lib" path="userlib/apache-mime4j-core-0.7.2.jar"/><classpathentry kind="lib" path="userlib/axiom-api-1.2.12.jar"/><classpathentry kind="lib" path="userlib/axiom-api-1.2.19.jar"/><classpathentry kind="lib" path="userlib/batik-css-1.7.jar"/><classpathentry kind="lib" path="userlib/batik-ext-1.7.jar"/><classpathentry kind="lib" path="userlib/batik-util-1.7.jar"/><classpathentry kind="lib" path="userlib/bcpkix-jdk15on-1.54.jar"/><classpathentry kind="lib" path="userlib/bcprov-jdk15on-1.54.jar"/><classpathentry kind="lib" path="userlib/bcprov-jdk16-1.46.jar"/><classpathentry kind="lib" path="userlib/com.google.guava-14.0.1.jar"/><classpathentry kind="lib" path="userlib/com.springsource.org.apache.batik.css-1.7.0.jar"/><classpathentry kind="lib" path="userlib/commons-codec-1.3.jar"/><classpathentry kind="lib" path="userlib/commons-fileupload-1.3.2.jar"/><classpathentry kind="lib" path="userlib/commons-httpclient-3.1.jar"/><classpathentry kind="lib" path="userlib/commons-io-2.2.jar"/><classpathentry kind="lib" path="userlib/commons-lang-2.5.jar"/><classpathentry kind="lib" path="userlib/commons-lang3-3.4.jar"/><classpathentry kind="lib" path="userlib/commons-logging-1.1.jar"/><classpathentry kind="lib" path="userlib/commons-logging-1.2.jar"/><classpathentry kind="lib" path="userlib/fontbox-1.8.12.jar"/><classpathentry kind="lib" path="userlib/geronimo-activation_1.1_spec-1.1.jar"/><classpathentry kind="lib" path="userlib/geronimo-stax-api_1.0_spec-1.0.1.jar"/><classpathentry kind="lib" path="userlib/guava-14.0.1.jar"/><classpathentry kind="lib" path="userlib/guice-2.0.jar"/><classpathentry kind="lib" path="userlib/hamcrest-core-1.3.jar"/><classpathentry kind="lib" path="userlib/httpclient-4.1.jar"/><classpathentry kind="lib" path="userlib/httpcore-4.1.jar"/><classpathentry kind="lib" path="userlib/java-configparser-0.2.jar"/><classpathentry kind="lib" path="userlib/jaxen-1.1.6.jar"/><classpathentry kind="lib" path="userlib/jempbox-1.8.12.jar"/><classpathentry kind="lib" path="userlib/jempbox-1.8.5.jar"/><classpathentry kind="lib" path="userlib/joda-time-2.8.2.jar"/><classpathentry kind="lib" path="userlib/joda-time-2.9.6.jar"/><classpathentry kind="lib" path="userlib/junit-4.11.jar"/><classpathentry kind="lib" path="userlib/junit-4.12.jar"/><classpathentry kind="lib" path="userlib/nekohtml-1.9.16.jar"/><classpathentry kind="lib" path="userlib/nekohtml.jar"/><classpathentry kind="lib" path="userlib/openid4java-0.9.8.jar"/><classpathentry kind="lib" path="userlib/openid4java-1.0.0.jar"/><classpathentry kind="lib" path="userlib/org.apache.commons.fileupload-1.2.1.jar"/><classpathentry kind="lib" path="userlib/org.apache.commons.io-2.3.0.jar"/><classpathentry kind="lib" path="userlib/org.apache.commons.lang3.jar"/><classpathentry kind="lib" path="userlib/org.apache.httpcomponents.httpclient-osgi.jar"/><classpathentry kind="lib" path="userlib/org.apache.httpcomponents.httpclient_4.4.1.jar"/><classpathentry kind="lib" path="userlib/org.apache.httpcomponents.httpcore-osgi.jar"/><classpathentry kind="lib" path="userlib/org.apache.httpcomponents.httpcore_4.4.1.jar"/><classpathentry kind="lib" path="userlib/org.apache.servicemix.bundles.commons-codec-1.3.0.jar"/><classpathentry kind="lib" path="userlib/org.eclipse.paho.client.mqttv3-1.1.0.jar"/><classpathentry kind="lib" path="userlib/pdfbox-app-2.0.3.jar"/><classpathentry kind="lib" path="userlib/slf4j-api-1.7.5.jar"/><classpathentry kind="lib" path="userlib/slf4j-simple-1.7.5.jar"/><classpathentry kind="lib" path="userlib/xercesImpl-2.9.1.jar"/><classpathentry kind="lib" path="userlib/xml-apis-1.3.04.jar"/><classpathentry kind="lib" path="userlib/xml-apis-ext-1.3.04.jar"/><classpathentry kind="lib" path="userlib/xml-apis-ext.jar"/>
<classpathentry kind="lib" path="C:/Program Files/Mendix/8.12.5.11364/runtime/bundles/com.mendix.json.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/8.12.5.11364/runtime/bundles/com.mendix.logging-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/8.12.5.11364/runtime/bundles/com.mendix.m2ee-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/8.12.5.11364/runtime/bundles/com.mendix.public-api.jar"/><classpathentry kind="lib" path="C:/Program Files/Mendix/8.12.5.11364/runtime/bundles/javax.servlet-api.servlet.jar"/>
<classpathentry kind="lib" path="userlib/bcpkix-jdk15on-164.jar"/><classpathentry kind="lib" path="userlib/bcprov-jdk15on-164.jar"/><classpathentry kind="lib" path="userlib/commons-io-2.6.jar"/><classpathentry kind="lib" path="userlib/commons-lang3-3.7.jar"/><classpathentry kind="lib" path="userlib/hamcrest-2.2.jar"/><classpathentry kind="lib" path="userlib/httpclient5-5.0.3.jar"/><classpathentry kind="lib" path="userlib/httpcore5-5.0.3.jar"/><classpathentry kind="lib" path="userlib/junit-4.13.1.jar"/><classpathentry kind="lib" path="userlib/org.eclipse.paho.client.mqttv3-1.2.5.jar"/>
<classpathentry kind="output" path="deployment/run/bin"/>
</classpath>
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ Temporary Items
.idea
deployment
certs
userlib/*
userlib/*.jar


2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/deployment/run/bndbuild.launch</value>
<value>&lt;project&gt;/deployment/run/componentbuild.launch</value>
</dictionary>
</arguments>
</buildCommand>
Expand Down
Binary file added DIST/MqttClient-1.0.mpk
Binary file not shown.
Binary file added DIST/MqttClient-2.0.mpk
Binary file not shown.
Binary file added DIST/MqttClient-2.1.0--AKA-4.0.mpk
Binary file not shown.
Binary file added DIST/MqttClient-2.2.0_Mx8.12.5.mpk
Binary file not shown.
Binary file added GPUCache/data_0
Binary file not shown.
Binary file added GPUCache/data_1
Binary file not shown.
Binary file added GPUCache/data_2
Binary file not shown.
Binary file added GPUCache/data_3
Binary file not shown.
Binary file added GPUCache/index
Binary file not shown.
19 changes: 10 additions & 9 deletions MqttClient.launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
<mapEntry key="M2EE_ADMIN_PASS" value="1"/>
<mapEntry key="M2EE_ADMIN_PORT" value="8090"/>
<mapEntry key="M2EE_CONSOLE_PATH" value="C:/Program Files/Mendix/7.0.2/modeler/MendixConsoleLog.exe"/>
<mapEntry key="MX_INSTALL_PATH" value="C:/Program Files/Mendix/7.0.2"/>
<mapEntry key="MXCONSOLE_BASE_PATH" value="C:/projects/mendix/MqttClient/deployment"/>
<mapEntry key="MXCONSOLE_RUNTIME_PATH" value="C:/Program Files/Mendix/7.0.2/runtime"/>
<mapEntry key="M2EE_ADMIN_LISTEN_ADDRESSES" value="*"/>
<mapEntry key="M2EE_CONSOLE_PATH" value="C:/Program Files/Mendix/8.12.5.11364/modeler/MendixConsoleLog.exe"/>
<mapEntry key="MX_INSTALL_PATH" value="C:/Program Files/Mendix/8.12.5.11364"/>
<mapEntry key="MXCONSOLE_BASE_PATH" value="C:/Mendix/Modules/Github/MqttClient/deployment"/>
<mapEntry key="MXCONSOLE_RUNTIME_PATH" value="C:/Program Files/Mendix/8.12.5.11364/runtime"/>
<mapEntry key="MXCONSOLE_RUNTIME_PORT" value="8080"/>
<mapEntry key="MXCONSOLE_RUNTIME_LISTEN_ADDRESSES" value="*"/>
<mapEntry key="MXCONSOLE_SERVER_URL" value="http://127.0.0.1:8090/"/>
</mapAttribute>
<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>
<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;sourceLookupDirector&gt;&#13;&#10;&lt;sourceContainers duplicates=&quot;false&quot;&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;javaProject name=&amp;quot;MqttClient&amp;quot;/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.jdt.launching.sourceContainer.javaProject&quot;/&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;default/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.debug.core.containerType.default&quot;/&gt;&#13;&#10;&lt;/sourceContainers&gt;&#13;&#10;&lt;/sourceLookupDirector&gt;&#13;&#10;"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;MqttClient&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Mendix/7.0.2/runtime/launcher/runtimelauncher.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Mendix/7.0.2/runtime/lib/com.mendix.xml-apis-1.4.1.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Mendix/8.12.5.11364/runtime/launcher/runtimelauncher.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.mendix.container.boot.Main"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="MqttClient"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.net.preferIPv4Stack=true -DMX_LOG_LEVEL=INFO -Djava.library.path=&quot;C:/Program Files/Mendix/7.0.2/runtime/lib/x64;C:/projects/mendix/MqttClient/deployment/model/lib/userlib&quot; -Dfile.encoding=UTF-8 -Djava.io.tmpdir=&quot;C:/projects/mendix/MqttClient/deployment/data/tmp&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="C:/projects/mendix/MqttClient/deployment"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="C:/projects/mendix/MqttClient/deployment"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.net.preferIPv4Stack=true -DMX_LOG_LEVEL=INFO -Djava.library.path=&quot;C:/Program Files/Mendix/8.12.5.11364/runtime/lib/x64;C:/Mendix/Modules/Github/MqttClient/deployment/model/lib/userlib&quot; -Dfile.encoding=UTF-8 -Djava.io.tmpdir=&quot;C:/Mendix/Modules/Github/MqttClient/deployment/data/tmp&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="&quot;C:/Mendix/Modules/Github/MqttClient/deployment&quot;"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="C:/Mendix/Modules/Github/MqttClient/deployment"/>
</launchConfiguration>
Binary file modified MqttClient.mpr
Binary file not shown.
Binary file modified docs/images/mqtt-toolbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions javasource/administration/proxies/Account.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by Mendix Modeler.
// This file was generated by Mendix Studio Pro.
//
// WARNING: Code you write here will be lost the next time you deploy the project.

Expand Down Expand Up @@ -38,7 +38,7 @@ public enum MemberNames
metaName = s;
}

@Override
@java.lang.Override
public java.lang.String toString()
{
return metaName;
Expand All @@ -60,7 +60,7 @@ protected Account(com.mendix.systemwideinterfaces.core.IContext context, com.men
/**
* @deprecated Use 'Account.load(IContext, IMendixIdentifier)' instead.
*/
@Deprecated
@java.lang.Deprecated
public static administration.proxies.Account initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException
{
return administration.proxies.Account.load(context, mendixIdentifier);
Expand Down Expand Up @@ -197,7 +197,7 @@ public final void setIsLocalUser(com.mendix.systemwideinterfaces.core.IContext c
getMendixObject().setValue(context, MemberNames.IsLocalUser.toString(), islocaluser);
}

@Override
@java.lang.Override
public boolean equals(Object obj)
{
if (obj == this)
Expand All @@ -211,7 +211,7 @@ public boolean equals(Object obj)
return false;
}

@Override
@java.lang.Override
public int hashCode()
{
return getMendixObject().hashCode();
Expand All @@ -229,8 +229,8 @@ public static java.lang.String getType()
* @return String GUID from this object, format: ID_0000000000
* @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object.
*/
@Override
@Deprecated
@java.lang.Override
@java.lang.Deprecated
public java.lang.String getGUID()
{
return "ID_" + getMendixObject().getId().toLong();
Expand Down
12 changes: 6 additions & 6 deletions javasource/administration/proxies/AccountPasswordData.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file was generated by Mendix Modeler.
// This file was generated by Mendix Studio Pro.
//
// WARNING: Code you write here will be lost the next time you deploy the project.

Expand Down Expand Up @@ -32,7 +32,7 @@ public enum MemberNames
metaName = s;
}

@Override
@java.lang.Override
public java.lang.String toString()
{
return metaName;
Expand All @@ -58,7 +58,7 @@ protected AccountPasswordData(com.mendix.systemwideinterfaces.core.IContext cont
/**
* @deprecated Use 'AccountPasswordData.load(IContext, IMendixIdentifier)' instead.
*/
@Deprecated
@java.lang.Deprecated
public static administration.proxies.AccountPasswordData initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException
{
return administration.proxies.AccountPasswordData.load(context, mendixIdentifier);
Expand Down Expand Up @@ -277,7 +277,7 @@ public final com.mendix.systemwideinterfaces.core.IContext getContext()
return context;
}

@Override
@java.lang.Override
public boolean equals(Object obj)
{
if (obj == this)
Expand All @@ -291,7 +291,7 @@ public boolean equals(Object obj)
return false;
}

@Override
@java.lang.Override
public int hashCode()
{
return getMendixObject().hashCode();
Expand All @@ -309,7 +309,7 @@ public static java.lang.String getType()
* @return String GUID from this object, format: ID_0000000000
* @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object.
*/
@Deprecated
@java.lang.Deprecated
public java.lang.String getGUID()
{
return "ID_" + getMendixObject().getId().toLong();
Expand Down
Loading