Quantcast
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: how to make cc2540 discoverable

I think you can use simpleBLEperipheral project.

But before flashing it, make a small change in the simpleBLEperipheral.c file.

In simpleBLEperipheral_init (....) function, use code provided below.

#if defined( CC2540_MINIDK )   
      // For the CC2540DK-MINI keyfob, device doesn't start advertising until button is pressed
      //uint8 initial_advertising_enable = FALSE;
    // No need to press any key to start advertising........................................
      uint8 initial_advertising_enable = TRUE;
    #else
      // For other hardware platforms, device starts advertising upon initialization
      uint8 initial_advertising_enable = TRUE;
    #endif

Your module should start advertising once it is powered up.

Regards,

maharjanbk


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>