Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
martinbach #1
Member since Mar 2009 · 60 posts
Group memberships: Members, Premium
Show profile · Link to this post
Subject: Extending Roster
Hi Alex,

I need three more fields in the roster to share them with each mutual subscribed user.
It should work like the absence notice.
Instead the absence status I will exchange two numbers and a short text.

1. Is XEP-0057 the right extension for that?
2. What are the fist steps for me to do this in MatriX?

Best regards

Martin
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

XEP-0057 is retracted.

When you describe what you are trying to achieve in details I can suggest a solution.
Maybe you can put your stuff in the VCard.

Alex
Avatar
martinbach #3
Member since Mar 2009 · 60 posts
Group memberships: Members, Premium
Show profile · Link to this post
Hi Alex,

here is the description:

Each of the mutual subscribed users want to offer two blood pressure parameters (systolisch diastolisch) and a time stamp.
The pressures are meassured automatically and the time stamp is generated too  (two Double   and    a   DateTime).
The blood pressure change each  +-10 seconds.

Each mutual subsribed user should get the current blood parameters of all the other users
1. when he/she logs into the xmpp server the new user receives the current blood paramenters of all active users via the roster data
2. the blood parameters of a user are actualized each time a user sends new data
3. if the user leaves the xmpp server the last blood paramenters are saved so that other users can receive his/her last paramenters with their login via roster.

Hope this helps you to give me a hint how to implement it.

Best regards,

Martin
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by martinbach:
Hope this helps you to give me a hint how to implement it.

very interesting project and perfect use case for PEP or Pubsub.

So I suggest to study the following extensions:
XEP-0060: Publish-Subscribe
XEP-0163: Personal Eventing Protocol

Alex
Avatar
martinbach #5
Member since Mar 2009 · 60 posts
Group memberships: Members, Premium
Show profile · Link to this post
Hi Alex,

thank you for the hint.

I agree, PEP (XEP-0163) is what I need.

Do you have a mini example on how to use PEP with Matrix?
(I searched the forum but could find a little snippet for PubSub only)

What I want to send is something like this:

  1. <iq from='maltin1@myxmppserver.net/mobile' type='set' id='pub1'>
  2.  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  3.     <publish node='http://jabber.org/protocol/tune'>
  4.       <item>
  5.         <bloodpressure xmlns='http://myxmppserver.net/protocol/bloodpressure'>
  6.           <diastolic>80.04</diastolic>
  7.           <systolic>120.55</systolic>
  8.           <timestamp>2013_02_02_23_59_59</timestamp>
  9.           <health>robust</health>
  10.         </bloodpressure>
  11.       </item>
  12.     </publish>
  13.  </pubsub>
  14. </iq>

Best regards,

Martin
This post was edited on 2013-02-03, 11:20 by Alex.
Avatar
Alex #6
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In the latest MiniClient example there is a Pubsub from with a basic example.

When you run your own closed XMPP network and you need this info always you can also just put the data in the presence.
But once you start to add more medical data and not all the subscribed users care about all data its getting confusing and you start to produce unseeded traffic.

Alex
Avatar
Alex #7
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #5
Quote by martinbach:
I agree, PEP (XEP-0163) is what I need.

XEP-0163 is a simplifies version of XEP-0060. So once you need ore features its easy to upgrade to XEP-0060.

Alex
Avatar
martinbach #8
Member since Mar 2009 · 60 posts
Group memberships: Members, Premium
Show profile · Link to this post
Hi Alex,

where can I find the latest MiniClient example / Can't find it on your site via Menue or in downloads.
(I have one of 2010 and found another old one attached in the forum a Version for WP7.1 both without PubSub)

Martin
Avatar
Alex #9
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
included in MatriX .NET, first download here:
http://www.ag-software.net/matrix-xmpp-sdk/download/
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS