This prints both Data and Discoverable if advertise command succeeds:
[bluetooth]# advertise.data 0x26 0x01 0x00
[bluetooth]# advertise.discoverable on
[bluetooth]# advertise on
Advertising object registered
Data Type: 0x26
01 00 ..
Tx Power: off
Name: off
Apperance: off
Discoverable: on
Change-Id: I51d7d8c05531d62f486c8026cc4bfb2458b57892
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
ad.manufacturer.data.len);
}
+ if (ad.data.data.len) {
+ bt_shell_printf("Data Type: 0x%02x\n", ad.data.type);
+ bt_shell_hexdump(ad.data.data.data, ad.data.data.len);
+ }
+
bt_shell_printf("Tx Power: %s\n", ad.tx_power ? "on" : "off");
if (ad.local_name)
bt_shell_printf("Apperance: %s\n",
ad.appearance ? "on" : "off");
+ bt_shell_printf("Discoverable: %s\n", ad.discoverable ? "on": "off");
+
if (ad.duration)
bt_shell_printf("Duration: %u sec\n", ad.duration);