Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Notification over MQTT(Problem when sending a notification over MQTT)
Notification over MQTT [message #1763414] Mon, 15 May 2017 14:00 Go to next message
Maite Bezunartea is currently offline Maite BezunarteaFriend
Messages: 3
Registered: April 2017
Junior Member

We are testing the MQTT binding in OM2M. Whenever a new content instance is created, a notification should be published under the MQTT topic "oneM2M/resp/in-cse/LAMP/xml". This is correctly handled by OM2M, and a notification is automatically sent and received in the corresponding topic. However, we do not receive the whole content instance.

The content instance created is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="..." rn="cin_716368782">

The notification received is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<m2m:rqp xmlns:m2m="...">
<rep rn="cin_716368782">

As you can see, some of the attributes are missing in the notification (st, cnf, cs, con).

The problem seems to be the objToString function, called in; payload = DataMapperRegistry.get(MimeMediaType.JSON).objToString(requestPrimitive);

Has anybody experienced this issue? Do you have any suggestion on how to solve this problem?

Thank you in advance Razz .
Re: Notification over MQTT [message #1775916 is a reply to message #1763414] Wed, 08 November 2017 09:07 Go to previous message
Xurxo Legaspi is currently offline Xurxo LegaspiFriend
Messages: 2
Registered: November 2017
Junior Member

I've got the same problem... any new about this?

Previous Topic:communication between multiple IN-CSE
Next Topic:MQTT?
Goto Forum:

Current Time: Fri Jan 27 07:13:54 GMT 2023

Powered by FUDForum. Page generated in 0.02672 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top