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

GZLL agreement return function cannot accurately judge whether success or failure

void Gzll_TxSuccessCallback(uint32_t pipe) void Gzll_TxFailedCallback(uint32_t pipe) More than two functions are not accurate judgment GZLL agreement return function cannot accurately judge whether success or failure If there is any can accurately determine whether to send success functions or failure?

Parents
  • Hi:

    More than two functions are not accurate judgment GZLL agreement return function cannot accurately judge whether success or failure If there is any can accurately determine whether to send success functions or failure?

    void nrf_gzll_device_tx_success(uint32_t pipe, nrf_gzll_device_tx_info_t tx_info)
    {
        latest_tx_info = tx_info;
    
        if (tx_info.payload_received_in_ack)
        {
    		   Gzll_TxSuccessCallback(pipe);			//
        }
    		
    //		NrfFuncInterface.nRFRssi = tx_info.rssi;	//
    		
    		GzllStateInstance.TxSuccessCount++;	//·
        tx_complete = true;
        tx_success = true;
    }
    
    bool TxFailedFlag = true;
    
    void nrf_gzll_device_tx_failed(uint32_t pipe, nrf_gzll_device_tx_info_t tx_info)
    {
        latest_tx_info = tx_info;
    
    		Gzll_TxFailedCallback( pipe);		//
    		
        tx_complete = true;
        tx_success = false;
    }
    
Reply
  • Hi:

    More than two functions are not accurate judgment GZLL agreement return function cannot accurately judge whether success or failure If there is any can accurately determine whether to send success functions or failure?

    void nrf_gzll_device_tx_success(uint32_t pipe, nrf_gzll_device_tx_info_t tx_info)
    {
        latest_tx_info = tx_info;
    
        if (tx_info.payload_received_in_ack)
        {
    		   Gzll_TxSuccessCallback(pipe);			//
        }
    		
    //		NrfFuncInterface.nRFRssi = tx_info.rssi;	//
    		
    		GzllStateInstance.TxSuccessCount++;	//·
        tx_complete = true;
        tx_success = true;
    }
    
    bool TxFailedFlag = true;
    
    void nrf_gzll_device_tx_failed(uint32_t pipe, nrf_gzll_device_tx_info_t tx_info)
    {
        latest_tx_info = tx_info;
    
    		Gzll_TxFailedCallback( pipe);		//
    		
        tx_complete = true;
        tx_success = false;
    }
    
Children
Related