Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / shell / README_DEVICE.md
1 # CHIP Shell - Device Layer module
2
3 The chip::DeviceLayer APIs may be invoked via the CHIP Shell CLI.
4
5 ## Command List
6
7 -   [help](#help)
8 -   [config](#config)
9 -   [get](#get-parameter)
10 -   [start](#start)
11
12 ## Command Details
13
14 ### help
15
16 List the Device CLI commands.
17
18 ```bash
19 > device help
20   help            Usage: device <subcommand>
21   start           Start the device layer. Usage: device start
22   get             Get configuration value. Usage: device get <param_name>
23   config          Dump entire configuration of device. Usage: device dump
24 Done
25 ```
26
27 ### config
28
29 Dump the configuration of the device.
30
31 ```bash
32 > device config
33 VendorId:        235a
34 ProductId:       feff
35 ProductRevision: 0001
36 SerialNumber:    <None>
37 ServiceId:       <None>
38 FabricId:        <None>
39 PinCode:         <None>
40 Discriminator:   <None>
41 DeviceId:        <None>
42 DeviceCert:      <None>
43 DeviceCaCerts:   <None>
44 MfrDeviceId:     <None>
45 MfrDeviceCert:   <None>
46 MfgDeviceCaCerts:<None>
47 ```
48
49 ### get \<parameter\>
50
51 -   parameter: name of field to query
52
53 Where valid parameter names include:
54
55 -   vendorid: Vendor Identifier
56 -   productid: Product Identifier
57 -   productrev: Product Revision
58 -   serial: Serial Number
59 -   deviceid: Device Identification Number
60 -   cert: Device Certificate
61 -   cacerts: Device CA Certificates
62 -   mfrdeviceid: Manufacturer Device Identification Number
63 -   mfrcert: Manufacturer Device Certificate
64 -   mfrcacerts: Manufacturer Device CA Certs
65 -   pincode: Setup Pin Code
66 -   discriminator: Setup Discriminator
67 -   serviceid: Service Identifier
68 -   fabricid: Fabric Identifier
69
70 ```bash
71 > device get vendorid
72 235a
73 Done
74 ```
75
76 ### start
77
78 Initialize the chip stack and start the device layer event loop.
79
80 ```bash
81 > device start
82 Init CHIP Stack
83 Starting Platform Manager Event Loop
84 Done
85 ```