Hi Peter,
Sounds like good approach. This gives great flexibility to set meta information by the
owner.
Personally I do not like the proposed name 'thingJid' for the property. I would
just put 'jid' or 'thing' for the name. 'jid' is a personal
favourite as I like consistent naming ;-)
+1 for adding 'ROOM' to the tag list!
Cheers,
Eelco
On 10 Nov 2014, at 15:12, Peter Waher
<Peter.Waher(a)clayster.com> wrote:
Hello Eelco
Thanks for your input.
How about adding an optional argument (for instance thingJid) to the <update>
message? If not provided, it is assumed the Thing sends the message. If provided, it is
assumed the owner sends the message. And allowed values only include things actually owned
by the sender of the message.
Example:
<iq type='set'
from=owner(a)clayster.com/1234'
to='discovery.clayster.com'
id='8'>
<update xmlns='urn:xmpp:iot:discovery'
thingJid='thing(a)clayster.com'>
<str name='ROOM' value='...'/>
<str name='APT' value='...'/>
<str name='BLD' value='...'/>
<str name='STREET' value='...'/>
<str name='STREETNR' value='...'/>
<str name='AREA' value='...'/>
<str name='CITY' value='...'/>
<str name='REGION' value='...'/>
<str name='COUNTRY' value='...'/>
</update>
</iq>
Or, if behind a concentrator:
<iq type='set'
from=owner(a)clayster.com/1234'
to='discovery.clayster.com'
id='8'>
<update xmlns='urn:xmpp:iot:discovery' nodeId='imc1'
sourceId='MeteringTopology' thingJid='rack(a)clayster.com'>
<str name='ROOM' value='...'/>
<str name='APT' value='...'/>
<str name='BLD' value='...'/>
<str name='STREET' value='...'/>
<str name='STREETNR' value='...'/>
<str name='AREA' value='...'/>
<str name='CITY' value='...'/>
<str name='REGION' value='...'/>
<str name='COUNTRY' value='...'/>
</update>
</iq>
If you think this is a good idea, I can update the specification accordingly.
We can also add ROOM to the set of predefined tags.
Best regards,
Peter Waher
-----Original Message-----
From: Cramer, E.R. (Eelco) [mailto:Eelco.Cramer@tno.nl]
Sent: den 10 november 2014 10:39
To: XMPP in the Internet of Things
Subject: [IOT] IoT discovery (XEP-0347)
I’m working my way through the IoT discovery XEP.
For my use case I would like to update the Meta Information in the registry after a
device has been claimed. For example:
1. I install a Thing in a room and the Thing registeres itself in the registry.
2. I claim ownership of the Thing.
3. I now want to update the Meta Information with information not known by thing itself
like for example location, room number, building number etc.
How should I proceed with step 3? A Thing can update its meta-information in the registry
but an owner cannot update the meta-information of the Thing or tell a Thing to do so as
of the current version of the spec.
Any ideas?
Thanks,
Eelco
-----
No virus found in this message.
Checked by AVG -
www.avg.com
Version: 2014.0.4765 / Virus Database: 4189/8501 - Release Date: 11/03/14 Internal Virus
Database is out of date.
_______________________________________________
IOT mailing list
IOT(a)xmpp.org
http://mail.jabber.org/mailman/listinfo/iot
This message may contain information that is not intended for you. If you are not the
addressee or if this message was sent to you by mistake, you are requested to inform the
sender and delete the message. TNO accepts no liability for the content of this e-mail,
for the manner in which you use it and for damage of any kind resulting from the risks
inherent to the electronic transmission of messages.