Partager via


Querying Device Information

4/8/2010

The following example shows a query of the top-level DevInfo node.

Code Example

<Get>
   <CmdID>2</CmdID>
   <Item>
      <Target>
         <LocURI>./DevInfo</LocURI>
      </Target>
   </Item>
</Get>

Response to Query

In response, the names of all the child nodes are sent in a format similar to the following:

<Results>
   <CmdID>3</CmdID> 
   <MsgRef>1</MsgRef> 
   <CmdRef>2</CmdRef> 
   <Item>
      <Source>
         <LocURI>./DevInfo</LocURI> 
      </Source>
      <Meta>
         <Format>node</Format> 
      </Meta>
      <Data>DevId/Man/Mod/DmV/Lang</Data> 
   </Item>
</Results>

Based on this response, DevId, Man, Mod, DmV, and Lang are the names of the nodes under the ./DevInfo node.

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the SyncBody node in an OMA DM provisioning file. For more information about the syntax of the provisioning file, see OMA DM Provisioning Files.

See Also

Reference

DevInfo Configuration Service Provider

Concepts

DevInfo Configuration Service Provider Examples for OMA DM