@@ -47,14 +47,14 @@ Contributions and PRs are welcome.
47
47
48
48
#### Install PCAP dev libraries
49
49
50
- * Ensure you have install the libpcap-dev package
50
+ * Optionally, you may want to have libpcap-dev package installed (if building with ` -tags pcap ` .)
51
51
52
52
#### Download, extract, and compile phev2mqtt
53
53
54
54
* Download the phev2mqtt archive
55
55
* Extract it
56
- * Go into its the top level directory and run * go build*
57
- * Verify it runs with * ./phev2mqtt -h*
56
+ * Go into its the top level directory and run ` go build `
57
+ * Verify it runs with ` ./phev2mqtt -h `
58
58
59
59
### Connecting to the vehicle.
60
60
@@ -238,10 +238,9 @@ then extract off the phone.
238
238
* PCAP Remote* is a little more involved, but allows for live sniffing of the traffic.
239
239
240
240
Once you have downloaded the PCAP file(s) from the phone, you can analyse them with
241
- the command * phev2mqtt decode pcap <filename >* . Adjust the verbosity level (-v)
242
- between 'info', 'debug' and 'trace' for more details.
241
+ the command * phev2mqtt decode pcap <filename >* . First build a ` phev2mqtt ` with pcap features:
242
+ ` go build -tags pcap ` ; you will need libpcap for this. Adjust the verbosity level (` -v ` ) between
243
+ ` info ` , ` debug ` and ` trace ` for more details.
243
244
244
- Additionally, the flag ' --latency' will use the PCAP packet timestamps to decode
245
+ Additionally, the flag ` --latency ` will use the PCAP packet timestamps to decode
245
246
the packets with original timings which can help pinpoint app events.
246
-
247
-
0 commit comments