Function pfwl_set_max_trials

Function Documentation

uint8_t pfwl_set_max_trials(pfwl_state_t *state, uint16_t max_trials)

Sets the maximum number of packets to use to identify the protocol. During the flow protocol identification, after this number of trials, if the library cannot decide between two or more protocols, one of them will be chosen, otherwise PFWL_PROTOCOL_UNKNOWN will be returned.

Return

0 if succeeded, 1 otherwise.

Parameters
  • state: A pointer to the state of the library.

  • max_trials: Maximum number of trials. Zero will be consider as infinity.