This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2S data transmission over BLE

Hi,

I want to send the I2S MIC Raw data through Ble by using ble_nus_send. I have written one application but it triggers a Cmake error. I have attached the log below, Kindly check and guide me to achieve the above

Thanks,

Navin

Parents
  • Hi,

    Could I see your prj.conf? There seems to be some options there that are causing the issues.

  • hi 

    Thanks for your reply, Now I can able to open the application. But I have faced some issues while compiling.

    I have attached my application here.

    Kindly check and let me know

    thanks,

    Navin

  • Hi oivind,

    I am waiting for your reply

  • Ok, so looks like you are adding your I2C code to an older version of peripheral_uart, not the 1.7.1 version? That's why you are getting warnings due to deprecated function names.
    I would strongly recommend using the 1.7.1 version of peripheral_uart if you are building on 1.7.1.

    The build error is due to the arguments in the LOG_INF() calls in num_comp_reply(). Cast the auth_conn arguments as (void *) and it should build.

    static void num_comp_reply(bool accept)
    {
    	if (accept) {
    		bt_conn_auth_passkey_confirm(auth_conn);
    		LOG_INF("Numeric Match, conn %p", (void *)auth_conn);
    	} else {
    		bt_conn_auth_cancel(auth_conn);
    		LOG_INF("Numeric Reject, conn %p", (void *)auth_conn);
    	}
    
    	bt_conn_unref(auth_conn);
    	auth_conn = NULL;
    }

Reply
  • Ok, so looks like you are adding your I2C code to an older version of peripheral_uart, not the 1.7.1 version? That's why you are getting warnings due to deprecated function names.
    I would strongly recommend using the 1.7.1 version of peripheral_uart if you are building on 1.7.1.

    The build error is due to the arguments in the LOG_INF() calls in num_comp_reply(). Cast the auth_conn arguments as (void *) and it should build.

    static void num_comp_reply(bool accept)
    {
    	if (accept) {
    		bt_conn_auth_passkey_confirm(auth_conn);
    		LOG_INF("Numeric Match, conn %p", (void *)auth_conn);
    	} else {
    		bt_conn_auth_cancel(auth_conn);
    		LOG_INF("Numeric Reject, conn %p", (void *)auth_conn);
    	}
    
    	bt_conn_unref(auth_conn);
    	auth_conn = NULL;
    }

Children
Related