Specify the Network Key Example for OMA DM
4/8/2010
The Wi-Fi Configuration Service Provider allows you to specify the network encryption key for access-point or device-to device networks.
Code Example
The following example shows how to specify the network encryption key for an access-point network. In this example, the network name is "Work Network." Replace the placeholder with a valid network encryption key.
<Replace>
<CmdID>3</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/Wi-Fi/access-point/Work%20Network/NetworkKey</LocURI></Target>
<Data>NetworkKey</Data>
</Item>
</Replace>
The following example shows how to specify the network encryption key for a device-to device network. In this example, the network name is "Work Network." Replace the placeholder with a valid network encryption key.
<Replace>
<CmdID>3</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/Wi-Fi/ad-hoc/Work%20Network/NetworkKey</LocURI></Target>
<Data>NetworkKey</Data>
</Item>
</Replace>
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.