doc/advertising-api: Add Flags property
Luiz Augusto von Dentz
maintainerRFC 1/1 doc/advertising-api: Add Flags property
From: Luiz Augusto von Dentz <[email protected]>
This adds Flags which the application can use in case it want to set it own flags.
Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.
--- doc/advertising-api.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
doc/advertising-api.txt +15 -0
@@ -78,6 +78,21 @@ Properties string Type <Transport Discovery> <Organization Flags...> 0x26 0x01 0x01... + byte Flags [Experimental] + + Advertising Flags to include. When present this will + override existing flags such as Discoverable. + + Note: This property shall not be set when Type is set + to broadcast. + + Possible value: + bit 0 - LE Limited Discoverable Mode + bit 1 - LE General Discoverable Mode + bit 2 - BR/EDR Not Supported + bit 3 - Simultaneous LE and BR/EDR (Controller) + bit 4 - Simultaneous LE and BR/EDR (Host) + array{string} Includes List of features to be included in the advertising
Signature · 1 line
2.14.3
Hi Luiz,
Quoted 28 lines · On Monday, 7 May 2018 10:24:09 CEST Luiz Augusto von Dentz wrote:
From: Luiz Augusto von Dentz <[email protected]>
This adds Flags which the application can use in case it want to set it own flags.
Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.
--- doc/advertising-api.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)doc/advertising-api.txt +8
-0@@ -78,6 +78,21 @@ Properties string Type <Transport Discovery> <Organization Flags...> 0x26 0x01 0x01... + byte Flags [Experimental] + + Advertising Flags to include. When present this will + override existing flags such as Discoverable. + + Note: This property shall not be set when Type is set + to broadcast. +
doc/advertising-api.txt Properties string Type · line 98
Quoted 10 lines
doc/advertising-api.txt +7
-0+ Possible value: + bit 0 - LE Limited Discoverable Mode + bit 1 - LE General Discoverable Mode + bit 2 - BR/EDR Not Supported + bit 3 - Simultaneous LE and BR/EDR (Controller) + bit 4 - Simultaneous LE and BR/EDR (Host) + array{string} Includes List of features to be included in the advertising
I'd make Flags array{byte} (just like Flags in Device1) to keep it future proof.
Signature · 2 lines
pozdrawiam Szymon Janc
Luiz Augusto von Dentz
maintainerHi Szymon,
Quoted 15 lines · Szymon Janc
Hi Luiz,
Quoted 12 lines · On Monday, 7 May 2018 10:24:09 CEST Luiz Augusto von Dentz wrote:
From: Luiz Augusto von Dentz <[email protected]>
This adds Flags which the application can use in case it want to set it own flags.
Note: This would allow for example an application to advertise as discoverable even if the adapter is not discoverable which may be required by dual-mode as it may not require BR/EDR to be discoverable.
--- doc/advertising-api.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Quoted 6 lines
doc/advertising-api.txt Properties string Type · line 78
Quoted 6 lines
doc/advertising-api.txt +0
-0@@ -78,6 +78,21 @@ Properties string Type <Transport Discovery> <Organization
Flags...>
Quoted 1 line
doc/advertising-api.txt Properties string Type · line 79
Quoted 1 line
doc/advertising-api.txt +0
-00x26 0x01
0x01...
Quoted 4 lines
doc/advertising-api.txt Properties string Type
Quoted 4 lines
doc/advertising-api.txt +3
-0+ byte Flags [Experimental] + + Advertising Flags to include. When present this
will
Quoted 3 lines
doc/advertising-api.txt Properties string Type
Quoted 3 lines
doc/advertising-api.txt +3
-0+ override existing flags such as Discoverable. + + Note: This property shall not be set when Type is
set
Quoted 7 lines
doc/advertising-api.txt Properties string Type
Quoted 7 lines
doc/advertising-api.txt +7
-0+ to broadcast. + + Possible value: + bit 0 - LE Limited Discoverable Mode + bit 1 - LE General Discoverable Mode + bit 2 - BR/EDR Not Supported + bit 3 - Simultaneous LE and BR/EDR
(Controller)
Quoted 8 lines
doc/advertising-api.txt Properties string Type · line 98
Quoted 5 lines
doc/advertising-api.txt +2
-0+ bit 4 - Simultaneous LE and BR/EDR (Host) + array{string} Includes List of features to be included in the advertisingI'd make Flags array{byte} (just like Flags in Device1) to keep it future proof.
Yep, good catch.
Quoted 3 lines
--
pozdrawiam
Szymon Janc
Signature · 1 line
Luiz Augusto von Dentz