README.md
1# api test dhcpc
2
3The application confirms it can set DHCP on the given interface
4
5## build
6
7```
8 $ cmake . && make
9```
10
11## usage
12
13Commandline option|Meaning
14---|---
15-d <loglevel>|Debug verbosity in decimal, eg, -d15
16-i <netif>|Network interface name to set by DHCP, eg, eth0 or wlo1
17
18```
19 $ ./lws-api-test-dhcpc -i wlo1
20[2019/10/06 14:56:41:7683] U: LWS API selftest: Async DNS
21[2019/10/06 14:56:42:4461] U: main: requesting DHCP for wlo1
22[2019/10/06 14:56:42:5207] N: callback_dhcpc: DHCP configured wlo1
23[2019/10/06 14:56:42:5246] U: lws_dhcpc_cb: dhcp set OK
24[2019/10/06 14:56:42:5999] U: Completed: ALL PASS: 1 / 1
25```
26
27
28