<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using advertising flags</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28331/using-advertising-flags</link><description>Hello there. I just recently started programming using the nRF52832 DK, SDK14.1.0 and SoftDevice 132 v5.0 . I tried to follow this tutorial on Github: github.com/.../custom_ble_service_example 
 Right after implementing my own custom service, the board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Dec 2017 10:07:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28331/using-advertising-flags" /><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111846?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 10:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8124a83-31d0-497d-9a99-41374d37c0ab</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;if you check in nrf connect app flag and services. the byte will be 0x06. that is the value of both BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE and BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED. the two values are 0x02 and 0x04. so you should add both values to set a flag. so you should add both things and declare it in flag. so BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE is a addition of above things. you cant declare BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE  directly in advertising packet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111845?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ad2ed05-d3ca-4bfa-8270-8f6abd2822e8</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;try to print the error through uart and tell wat error you are getting. i think you will get fatal error and system reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111844?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d8b59f-848a-4a5f-a8d3-c572be435d79</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;wait i will check in 52840 and let you know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111843?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:149e1521-94e4-4fb2-a4db-28018fac8e51</guid><dc:creator>Nicole</dc:creator><description>&lt;p&gt;I tried, but changing the flag results in the same error (no advertising).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111837?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:516b68bb-9b0e-4c7e-b707-114200963387</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;i am also using 14.1 sdk. try to use ble_peripheral. ble_app_beacon. it is having for 132. try to use that example and change the flag and check what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111836?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25751709-5202-4279-a6d6-006756bfc741</guid><dc:creator>Nicole</dc:creator><description>&lt;p&gt;Many thanks for that! Hope you can find out more about my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111835?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 09:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3291d437-d4f5-4f50-ad49-0f13b5b550c4</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;i didnt find any error in main file. though i am having nrf52840 i will check your code with 52832 and tell you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111842?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 08:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:320d4632-2504-4877-845d-85834d2ca50d</guid><dc:creator>Nicole</dc:creator><description>&lt;p&gt;Not working either. The problem is that I always get an error indicating that the flag is an invalid parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111841?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 08:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab485c2-76a2-42cb-8eff-b7f31a50e7f6</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;try to give APP_ADV_TIMEOUT_IN_SECONDS 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111838?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 08:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f66c100-3053-4d94-adff-d4944fecc6f0</guid><dc:creator>Nicole</dc:creator><description>&lt;p&gt;It&amp;#39;s already defined like this in my ble_gap.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111839?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 07:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb1bc51d-43a5-4aac-a119-ddf16e9a0d04</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;did you modified your older BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. to the new one i specified&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111834?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 07:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7627631-f309-4824-ac8a-8e15557669e3</guid><dc:creator>Nicole</dc:creator><description>&lt;p&gt;Hey, thanks for your comment, but what should I exactly modify here? I want to support EDR and don&amp;#39;t know why this macro isn&amp;#39;t working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using advertising flags</title><link>https://devzone.nordicsemi.com/thread/111840?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 05:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35eceb2d-4492-4cc7-916f-dfcb4e1cd6ef</guid><dc:creator>karthikeyan</dc:creator><description>&lt;p&gt;hi,
try to modify this.
#define BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE   (BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE | BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>