packet_capture() function
Capture a pcap package with parameters
Arguments
payload
pointer of the captured data
length
length of captured data
seconds
second of capture time
microseconds
microsecond of capture time
Return value
esp_err_t - ESP_OK on success - ESP_FAIL on error