Skip to content

Service Discovery's Metadata

Tianyuan Yu edited this page Oct 13, 2018 · 3 revisions

IoT Package Service Discovery Metadata

Metadata in this query response has format:

  • Data packets with subprefixes directly name TLV encoded in content

Directly Encoded Subprefixes

Subprefix is the name start from the component after the service name.

Example:

  • /ucla/cs/397/sensor-bedroom/temperatue/read/celsius is a served prefix by identity /sensor-bedroom, under service name /temperatue. The encoded part would only include /read/celsius.
  • A directly prefixes packet when interest filter hear /sensor-bedroom/temperature/query could contain following subprefixes.
                 -----------------------------------------------------------
                | Name:   /ucla/cs/397/sensor-bedroom/temperature/query/v3  |
                |-----------------------------------------------------------|
                | Content:                                                  |
                |           /read/celsius                                   |
                |           /read/fahrenheit                                |
                |           /root/reboot                                    |
                |           /root/mode/sleep                                |
                |-----------------------------------------------------------|
                | Signature:                                                |
                |           by CKpri                                        |
                 -----------------------------------------------------------

Placeholder & Description

Description blocks are ordered by corresponding placeholders. Placeholer may have their code in IoT Package.

Example:

  • /ucla/cs/397/light-bedroom/set is a served service prefix by identity /light-bedroom, under service name /set. but specific brightness must included in interest.

Query Response Packets

                 -----------------------------------------------------------
                | Name:   /ucla/cs/397/light-bedroom/set/query/v3           |
                |-----------------------------------------------------------|
                | Content:                                                  |
                |           /dim/_PLACEHOLDER                               |
                |           /bright/_PLACEHOLDER                            |
                |           /root/mode/sleep/time/_PLACEHOLDER              |
                |           Description Block 1                             |
                |           Description Block 2                             |
                |           Description Block 3                             |
                |-----------------------------------------------------------|
                | Signature:                                                |
                |           by CKpri                                        |
                 -----------------------------------------------------------
Clone this wiki locally