This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Working with Strava

Hello, Interesting if someone ever tried to get connected with any kind of fitness apps? I tried to connect the Strava with nrf51244 in in HRM profile, no success. It is only works fine with Nordic nrf toolbox I tried to "sniff" Polar H6 chest belt sensor (which is btle ans Strava compatible) with pca10000 and master control panel - no success. Strava gives nothing to HW developpers. Please advise

Parents
  • This code works (add response uuids)

    static void advertising_init(void)
    {
        uint32_t      err_code;
        ble_advdata_t advdata;
        ble_advdata_t   advdata_response;
    	
        // Build advertising data struct to pass into @ref ble_advertising_init.
        memset(&advdata, 0, sizeof(advdata));
    		memset(&advdata_response, 0, sizeof(advdata_response));
    	
        advdata.name_type               = BLE_ADVDATA_FULL_NAME;
        advdata.include_appearance      = true;
        advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
        advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
        advdata.uuids_complete.p_uuids  = m_adv_uuids;
    
    	  advdata_response.uuids_complete = advdata.uuids_complete;
    	
        ble_adv_modes_config_t options = {0};
        options.ble_adv_fast_enabled  = BLE_ADV_FAST_ENABLED;
        options.ble_adv_fast_interval = APP_ADV_INTERVAL;
        options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;
    
        err_code = ble_advertising_init(&advdata, &advdata_response, &options, on_adv_evt, NULL);
        APP_ERROR_CHECK(err_code);
    }
    
Reply
  • This code works (add response uuids)

    static void advertising_init(void)
    {
        uint32_t      err_code;
        ble_advdata_t advdata;
        ble_advdata_t   advdata_response;
    	
        // Build advertising data struct to pass into @ref ble_advertising_init.
        memset(&advdata, 0, sizeof(advdata));
    		memset(&advdata_response, 0, sizeof(advdata_response));
    	
        advdata.name_type               = BLE_ADVDATA_FULL_NAME;
        advdata.include_appearance      = true;
        advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
        advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
        advdata.uuids_complete.p_uuids  = m_adv_uuids;
    
    	  advdata_response.uuids_complete = advdata.uuids_complete;
    	
        ble_adv_modes_config_t options = {0};
        options.ble_adv_fast_enabled  = BLE_ADV_FAST_ENABLED;
        options.ble_adv_fast_interval = APP_ADV_INTERVAL;
        options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;
    
        err_code = ble_advertising_init(&advdata, &advdata_response, &options, on_adv_evt, NULL);
        APP_ERROR_CHECK(err_code);
    }
    
Children
No Data
Related