Thanks for the update I will incorporate the changes to the github.

Regards
Joachim Lindborg
CTO, systems architect

Sustainable Innovation  SUST.se
Barnhusgatan 3 
111 23 Stockholm
Email: Joachim.lindborg@sust.se
linkedin: http://www.linkedin.com/in/joachimlindborg
Tel +46 706-442270

2014-11-12 9:04 GMT+01:00 Cramer, E.R. (Eelco) <Eelco.Cramer@tno.nl>:
Hi Peter,

As I would like to have this documented I added the change to my fork of the XMPP-IoT repository and created a pull request.

https://github.com/joachimlindborg/XMPP-IoT/pull/7

Best regards,
Eelco


> On 10 Nov 2014, at 15:12, Peter Waher <Peter.Waher@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@clayster.com/1234'
>       to='discovery.clayster.com'
>       id='8'>
>      <update xmlns='urn:xmpp:iot:discovery' thingJid='thing@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@clayster.com/1234'
>       to='discovery.clayster.com'
>       id='8'>
>      <update xmlns='urn:xmpp:iot:discovery' nodeId='imc1' sourceId='MeteringTopology' thingJid='rack@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@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.
_______________________________________________
IOT mailing list
IOT@xmpp.org
http://mail.jabber.org/mailman/listinfo/iot