<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCU中的主题 Toggling an external LED via BLE</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802530#M5157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to get a starting point for a bluetooth project. I want to build a project toggling on/off an external LED connected to my R41Z (based of KW41Z board) using an Android phone app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;R41Z board&lt;/LI&gt;&lt;LI&gt;External LED wired to PTB18 GPIO&lt;/LI&gt;&lt;LI&gt;SDK v2.2 (4-16-18) with bluetooth v.1.2.5 stack&lt;/LI&gt;&lt;LI&gt;Android phone app&amp;nbsp;built using Android Studios 3.1.3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Should I use the beacon bluetooth project as a base? If not, what would you suggest to start with?&lt;/LI&gt;&lt;LI&gt;If using the beacon project, which files should I be looking at modifying for the LED functionality, signal advertising, receiving the message from the phone app, etc.?&lt;/LI&gt;&lt;LI&gt;When it comes to the phone app, are there certain IDs that are within the beacon project that have to be used on the code for the phone app? I see the file&amp;nbsp;BLE_SIG_DEFINES_H has GATT declarations but I'm not too familiar yet how these play a role within the phone app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 21:14:01 GMT</pubDate>
    <dc:creator>johanandrade</dc:creator>
    <dc:date>2018-07-11T21:14:01Z</dc:date>
    <item>
      <title>Toggling an external LED via BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802530#M5157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to get a starting point for a bluetooth project. I want to build a project toggling on/off an external LED connected to my R41Z (based of KW41Z board) using an Android phone app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;R41Z board&lt;/LI&gt;&lt;LI&gt;External LED wired to PTB18 GPIO&lt;/LI&gt;&lt;LI&gt;SDK v2.2 (4-16-18) with bluetooth v.1.2.5 stack&lt;/LI&gt;&lt;LI&gt;Android phone app&amp;nbsp;built using Android Studios 3.1.3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Should I use the beacon bluetooth project as a base? If not, what would you suggest to start with?&lt;/LI&gt;&lt;LI&gt;If using the beacon project, which files should I be looking at modifying for the LED functionality, signal advertising, receiving the message from the phone app, etc.?&lt;/LI&gt;&lt;LI&gt;When it comes to the phone app, are there certain IDs that are within the beacon project that have to be used on the code for the phone app? I see the file&amp;nbsp;BLE_SIG_DEFINES_H has GATT declarations but I'm not too familiar yet how these play a role within the phone app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 21:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802530#M5157</guid>
      <dc:creator>johanandrade</dc:creator>
      <dc:date>2018-07-11T21:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Toggling an external LED via BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802531#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting started with the following setup for the external LED. I have the beacon bluetooth stack loaded on the R41Z board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;gpio_pins.c&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;EM&gt;/* Declare Output GPIO pins */&lt;BR /&gt;gpioOutputPinConfig_t ledPins[] = {&lt;BR /&gt; {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;BR /&gt; .gpioPort = gpioPort_C_c,&lt;BR /&gt; .gpioPin = 18,&lt;BR /&gt; .outputLogic = 1,&lt;BR /&gt; .slewRate = pinSlewRate_Slow_c,&lt;BR /&gt; .driveStrength = pinDriveStrength_High_c&lt;BR /&gt; }&lt;BR /&gt;};&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;gpioOutputPinConfig_t appExternalLed = {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; .gpioPort = gpioPort_B_c,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; .gpioPin = 18,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; .outputLogic = 1,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; .slewRate = pinSlewRate_Slow_c,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; .driveStrength = pinDriveStrength_Low_c&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gpio_pins.h&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;extern gpioInputPinConfig_t switchPins[];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extern gpioOutputPinConfig_t ledPins[];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;extern gpioOutputPinConfig_t appExternalLed;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;pin_mux.c&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#include "gpio_pins.h"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/*FUNCTION**********************************************************************&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * Function Name : APP_InitExternalLED&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * Description : Configures gpio output for external LEDs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; * Called in LED.c file to initialize&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; *&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; *END**************************************************************************/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;void APP_InitExternalLED(void) {&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; GpioOutputPinInit(&amp;amp;appExternalLed, 1);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;GpioClearPinOutput(&amp;amp;appExternalLed); // LED is off at start up&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;pin_mux.h&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/*!&lt;BR /&gt; * @brief Configures pin routing and optionally pin electrical features.&lt;BR /&gt; *&lt;BR /&gt; */&lt;BR /&gt;&lt;STRONG&gt;void APP_InitExternalLed(void);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LED.c&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/******************************************************************************&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;******************************************************************************&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;* Public functions&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;******************************************************************************&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*****************************************************************************/&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/******************************************************************************&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;* Name: LED_Init&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;* Description: Initialize the LED module&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;* Parameters: -&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;* Return: -&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;******************************************************************************/&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;void LED_Init&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; void&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; &lt;STRONG&gt;APP_InitExternalLED();&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BOARD_InitLEDs();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; (void)GpioOutputPinInit(ledPins, gLEDsOnTargetBoardCnt_c);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that sets up my LED connection and initialization at PTB18. I'm trying to understand how I can detect the advertisement from the board on a custom BLE mobile app. The only way I can see the device from my mobile phone is using the IoT Toolbox app NXP and booting up the Beacon program within. What would I need to modify in the beacon software stack to see the BLE advertisement on a custom BLE mobile app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a template BLE app "BluetoothLeGatt" provided from Android Studios which just does a scan of nearby devices and currently nothing shows up.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/65454i9AE4C040C96311CC/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a LEDController Sample App but it first needs to pair to the R41Z device before I can use the on/off functionality.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/65459iE050533AD6E866C9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/65460i7F2B91D67ABE2894/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I am able to pair the devices the next step would be to read the message of a "HIGH" or "LOW" signal sent from the mobile app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functions in the LEDControllerSample app sending these commands are defined as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;private void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;turnOffLed&lt;/SPAN&gt;()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #9876aa;"&gt;btSocket&lt;/SPAN&gt;!=&lt;SPAN style="color: #cc7832;"&gt;null&lt;/SPAN&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;try
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;btSocket&lt;/SPAN&gt;.getOutputStream().write(&lt;SPAN style="color: #6a8759;"&gt;"0"&lt;/SPAN&gt;.toString().getBytes())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;catch &lt;/SPAN&gt;(IOException e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg(&lt;SPAN style="color: #6a8759;"&gt;"Error"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}

&lt;SPAN style="color: #cc7832;"&gt;private void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;turnOnLed&lt;/SPAN&gt;()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #9876aa;"&gt;btSocket&lt;/SPAN&gt;!=&lt;SPAN style="color: #cc7832;"&gt;null&lt;/SPAN&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;try
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;btSocket&lt;/SPAN&gt;.getOutputStream().write(&lt;SPAN style="color: #6a8759;"&gt;"1"&lt;/SPAN&gt;.toString().getBytes())&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;catch &lt;/SPAN&gt;(IOException e)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg(&lt;SPAN style="color: #6a8759;"&gt;"Error"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;Also, in the source code of the mobile app there is this line:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;static final &lt;/SPAN&gt;UUID &lt;SPAN style="color: #9876aa;"&gt;myUUID &lt;/SPAN&gt;= UUID.&lt;SPAN&gt;fromString&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"00001101-0000-1000-8000-00805F9B34FB"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Does this UUID need to be changed to the matching R41Z board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802531#M5158</guid>
      <dc:creator>johanandrade</dc:creator>
      <dc:date>2020-11-02T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Toggling an external LED via BLE</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802532#M5159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Should I use the beacon Bluetooth project as a base? If not, what would you suggest to start with?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It will depend on your application, as you know the beacon is sending advertisements packets and the central device, in this case, the Phone will only scan that packets without a connection.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If using the beacon project, which files should I be looking at modifying for the LED functionality, signal advertising, receiving the message from the phone app, etc.?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes, you can create your own custom advertisement packet&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When it comes to the phone app, are there certain IDs that are within the beacon project that has to be used on the code for the phone app? I see the file&amp;nbsp;BLE_SIG_DEFINES_H has GATT declarations but I'm not too familiar yet how these play a role within the phone app.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The same, it will depend on your custom advertisement, what do you want to send and the way that you will process that information in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does this UUID need to be changed to the matching R41Z board?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it will depend on your phone app, if the application is scanning just that particular UUID, the R41Z should be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:05:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Toggling-an-external-LED-via-BLE/m-p/802532#M5159</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-09-26T16:05:16Z</dc:date>
    </item>
  </channel>
</rss>

