com.mobius-software.mqtt:parser

Mobius MQTT PARSER

License

License

GroupId

GroupId

com.mobius-software.mqtt
ArtifactId

ArtifactId

parser
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

com.mobius-software.mqtt:parser
Mobius MQTT PARSER
Project URL

Project URL

http://www.mobius-software.com/parser
Project Organization

Project Organization

Mobius Software
Source Code Management

Source Code Management

https://github.com/mobius-software-ltd/mqtt-parser

Download parser

How to add to project

<!-- https://jarcasting.com/artifacts/com.mobius-software.mqtt/parser/ -->
<dependency>
    <groupId>com.mobius-software.mqtt</groupId>
    <artifactId>parser</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.mobius-software.mqtt/parser/
implementation 'com.mobius-software.mqtt:parser:1.0.6'
// https://jarcasting.com/artifacts/com.mobius-software.mqtt/parser/
implementation ("com.mobius-software.mqtt:parser:1.0.6")
'com.mobius-software.mqtt:parser:jar:1.0.6'
<dependency org="com.mobius-software.mqtt" name="parser" rev="1.0.6">
  <artifact name="parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mobius-software.mqtt', module='parser', version='1.0.6')
)
libraryDependencies += "com.mobius-software.mqtt" % "parser" % "1.0.6"
[com.mobius-software.mqtt/parser "1.0.6"]

Dependencies

compile (5)

Group / Artifact Type Version
io.netty : netty-all jar 4.0.25.Final
commons-logging : commons-logging jar 1.2
com.fasterxml.jackson.core : jackson-databind jar 2.9.9
com.fasterxml.jackson.core : jackson-annotations jar 2.9.9
com.fasterxml.jackson.core : jackson-core jar 2.9.9

test (2)

Group / Artifact Type Version
commons-io : commons-io jar 2.5
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

MQTT parser

MQTT parser is a library designed for encoding and decoding of MQTT 3.1.1 packets. It is written in Java. MQTT parser is developed by Mobius Software.

Getting Started

First you should clone MQTT parser. Then you should add the following lines within the element of pom.xml file of your project:

<dependency>
	<groupId>com.mobius.software.mqtt</groupId>
	<artifactId>parser</artifactId>
	<version>0.0.1-SNAPSHOT</version>
</dependency>

Now you are able to start using MQTT parser.

Examples

Create, encode, decode message

try
		{
			// Message creation
			String username = "[email protected]";
			String password = "password";
			String clientID = "dummy-client-1";
			boolean cleanSession = true;
			int keepalive = 10;

			Text topicName = new Text("root/example");
			Topic topic = Topic.valueOf(topicName, QoS.AT_LEAST_ONCE);
			String content = "message";
			boolean retain = false;
			Will will = new Will(topic, content.getBytes(), retain);
			Connect connect = new Connect(username, password, clientID, cleanSession, keepalive, will);

			// Encode message
			ByteBuf encoded = MQParser.encode(connect);
			// process encoded value...

			// Decode message
			MQMessage decoded = MQParser.decode(encoded);
			// process decoded value...
		}
		catch (Exception e)
		{
			e.printStackTrace();
			fail();
		}

com.mobius-software.mqtt

Mobius Software

Versions

Version
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0