CC2640大广播,阿国

1:学习LongRange广播包知识,然后结合ti的代码,在代码修改longrang广播,且可以广播出来 ,

2:修改代码如下

      //#2---------------------------------------------------------------------------------
      GapAdv_params_t advParamLongRange = GAPADV_PARAMS_AE_LONG_RANGE_CONN;
      advParamLongRange.primPhy = GAP_ADV_PRIM_PHY_1_MBPS;
      advParamLongRange.secPhy = GAP_ADV_SEC_PHY_1_MBPS;    
      status_av = GapAdv_create(&SimplePeripheral_advCallback, &advParamLongRange,
                             &advHandleLongRange);
   
      uint8 advertDataLength =40; 
   
      // Load advertising data for set #2 that is statically allocated by the app
      status_av = GapAdv_loadByHandle(advHandleLongRange, GAP_ADV_DATA_TYPE_ADV,
                                   advertDataLength, adv_data);

你可能感兴趣的:(CC2640大广播,阿国)