Re: [PATCH v2 2/4] tools/btmgmt: Better usage info for add-adv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> On Wed, Mar 25, 2015 at 8:29 PM, Arman Uguray <armansito@xxxxxxxxxxxx> wrote:
> This patch improves the usage string that gets printed for the add-adv
> command to provide more details about the possible options.
> ---
>  tools/btmgmt.c | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/tools/btmgmt.c b/tools/btmgmt.c
> index 19eeda1..bd83ac7 100644
> --- a/tools/btmgmt.c
> +++ b/tools/btmgmt.c
> @@ -3687,8 +3687,18 @@ static void add_adv_rsp(uint8_t status, uint16_t len, const void *param,
>
>  static void add_adv_usage(void)
>  {
> -       print("Usage: add-adv [-u uuid] [-d adv_data] [-s scan_rsp] "
> -               "[-t timeout] [-c] [-d] [-e] [-l] [-m] [-p] <instance_id>");
> +       print("Usage: add-adv [options] <instance_id>\nOptions:\n"
> +               "\t -u, --uuid <uuid>        Service UUID\n"
> +               "\t -d, --adv-data <data>    Advertising Data bytes\n"
> +               "\t -s, --scan-rsp <data>    Scan Response Data bytes\n"
> +               "\t -t, --timeout <timeout>  Timeout in seconds\n"
> +               "\t -c, --connectable        \"connectable\" flag\n"
> +               "\t -g, --general-discov     \"general-discoverable\" flag\n"
> +               "\t -l, --limited-discov     \"limited-discoverable\" flag\n"
> +               "\t -m, --managed-flags      \"managed-flags\" flag\n"
> +               "\t -p, --tx-power           \"tx-power\" flag\n"
> +               "e.g.:\n"
> +               "\tadd-adv -u 180d -u 180f -d 080954657374204C45 1");
>  }
>
>  static struct option add_adv_options[] = {
> --
> 2.2.0.rc0.207.ga3a616c
>

All 4 patches in this set have been applied.

Thanks,
Arman
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux