mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-15 05:30:03 +00:00
This patch changes handling of all addr-type arguments to be consistent by providing common parsing helper. Helper assumes there are always "addr" and "addr_type" parameters with optional provided prefix. First, it tries to parse full address from "addr" parameter. If address is found but no type was provided it will try to parse "addr_type" parameter. If address is found and type was provided it will check if there is no separate "addr_type" parameter and won't allow such case since it could be confusing.