while Sending MPU6050 sensor data through BLE (5340DK) .In the nrf connect for mobile I am getting following data,sensor reading is not transferred propoerly In the vscode log it is showing correct reading when transferred though BLE and viewed in app below ouput comes.
MAIN.C
LOG MESSAGES IN VSCODE
--- 19 messages dropped ---
[00:12:54.814,086] <dbg> bt_conn: bt_conn_tx_processor: no buf returned
[00:12:54.814,117] <dbg> bt_conn: bt_conn_unref: handle 47 ref 2 -> 1
[00:12:54.814,117] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:54.814,147] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:54.814,178] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
--- 9 messages dropped ---
[00:12:54.844,726] <dbg> bt_conn: tx_notify_process: conn 0x200011c0
[00:12:54.844,757] <dbg> bt_conn: tx_notify_process: tx 0x200018d0 cb 0 user_data 0
[00:12:54.844,757] <dbg> bt_conn: tx_free: 0x200018d0
[00:12:54.844,787] <dbg> bt_conn: tx_notify_process: raise TX IRQ
[00:12:54.844,818] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:54.844,848] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:54.844,848] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:54.844,879] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:12:54.844,909] <dbg> os: k_sched_unlock: scheduler unlocked (0x200008f8:0)
[00:12:54.844,940] <dbg> bt_hci_driver: bt_ipc_rx: RX buf payload:
33 68 83 01 00 |3h...
[00:12:54.892,791] <dbg> bt_hci_driver: bt_ipc_rx: ipc data:
04 13 05 01 2f 00 01 00 |..../...
[00:12:54.892,822] <dbg> bt_hci_driver: bt_ipc_evt_recv: len 5
[00:12:54.892,852] <dbg> bt_hci_driver: bt_ipc_rx: Calling bt_recv(0x200056ec)
[00:12:54.892,852] <dbg> bt_hci_core: bt_recv_unsafe: buf 0x200056ec len 7
[00:12:54.892,883] <dbg> bt_hci_core: hci_num_completed_packets: num_handles 1
[00:12:54.892,913] <dbg> bt_hci_core: hci_num_completed_packets: handle 47 count 1
[00:12:54.892,944] <dbg> bt_conn: bt_conn_ref: handle 47 ref 1 -> 2
[00:12:54.892,974] <dbg> bt_conn: bt_conn_unref: handle 47 ref 2 -> 1
[00:12:54.893,005] <dbg> os: k_sched_unlock: scheduler unlocked (0x200008f8:0)
[00:12:54.893,035] <dbg> bt_conn: tx_notify_process: conn 0x200011c0
[00:12:54.893,066] <dbg> bt_conn: tx_notify_process: tx 0x200018dc cb 0 user_data 0
[00:12:54.893,066] <dbg> bt_conn: tx_free: 0x200018dc
[00:12:54.893,096] <dbg> bt_conn: tx_notify_process: raise TX IRQ
[00:12:54.893,096] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:54.893,157] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:54.893,157] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:54.893,188] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:12:54.893,218] <dbg> bt_hci_driver: bt_ipc_rx: RX buf payload:
94 5b 02 00 60 |.[..`
[00:12:55.818,176] <dbg> bt_hci_core: bt_send: buf 0x200057d0 len 23 type 2
--- 107 messages dropped ---
[00:12:55.818,695] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:55.818,725] <dbg> bt_conn: bt_conn_tx_processor: no buf returned
[00:12:55.818,725] <dbg> bt_conn: bt_conn_unref: handle 47 ref 2 -> 1
[00:12:55.818,756] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:55.818,786] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:55.818,817] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
--- 12 messages dropped ---
[00:12:55.819,793] <dbg> bt_conn: tx_notify_process: raise TX IRQ
[00:12:55.819,824] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:55.819,854] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:55.819,885] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:55.819,915] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:12:55.819,946] <dbg> os: k_sched_unlock: scheduler unlocked (0x200008f8:0)
[00:12:55.819,976] <dbg> bt_hci_driver: bt_ipc_rx: RX buf payload:
ca e8 83 01 58 |....X
[00:12:55.867,828] <dbg> bt_hci_driver: bt_ipc_rx: ipc data:
04 13 05 01 2f 00 01 00 |..../...
[00:12:55.867,828] <dbg> bt_hci_driver: bt_ipc_evt_recv: len 5
[00:12:55.867,858] <dbg> bt_hci_driver: bt_ipc_rx: Calling bt_recv(0x200056ec)
[00:12:55.867,889] <dbg> bt_hci_core: bt_recv_unsafe: buf 0x200056ec len 7
[00:12:55.867,889] <dbg> bt_hci_core: hci_num_completed_packets: num_handles 1
[00:12:55.867,919] <dbg> bt_hci_core: hci_num_completed_packets: handle 47 count 1
[00:12:55.867,950] <dbg> bt_conn: bt_conn_ref: handle 47 ref 1 -> 2
[00:12:55.867,980] <dbg> bt_conn: bt_conn_unref: handle 47 ref 2 -> 1
[00:12:55.868,041] <dbg> bt_conn: tx_notify_process: conn 0x200011c0
[00:12:55.868,041] <dbg> bt_conn: tx_notify_process: tx 0x200018d0 cb 0 user_data 0
[00:12:55.868,072] <dbg> bt_conn: tx_free: 0x200018d0
[00:12:55.868,103] <dbg> bt_conn: tx_notify_process: raise TX IRQ
[00:12:55.868,103] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:55.868,133] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:55.868,164] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:55.868,164] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:12:55.868,225] <dbg> os: k_sched_unlock: scheduler unlocked (0x200008f8:0)
[00:12:55.868,255] <dbg> bt_hci_driver: bt_ipc_rx: RX buf payload:
00 21 00 00 20 |.!..
[00:12:56.822,814] <dbg> bt_hci_core: bt_send: buf 0x200057d0 len 23 type 2
--- 87 messages dropped ---
[00:12:56.822,845] <dbg> bt_hci_driver: bt_ipc_send: buf 0x200057d0 type 2 len 23
[00:12:56.822,875] <dbg> bt_hci_driver: bt_ipc_send: Final HCI buffer:
02 2f 00 13 00 0f 00 04 00 1b 15 00 00 00 00 00 |./...... ........
00 00 00 00 00 00 00 00 |........
--- 19 messages dropped ---
[00:12:56.823,364] <dbg> bt_conn: bt_conn_tx_processor: no buf returned
[00:12:56.823,394] <dbg> bt_conn: bt_conn_unref: handle 47 ref 2 -> 1
[00:12:56.823,425] <dbg> bt_hci_core: tx_processor: TX process start
--- 14 messages dropped ---
[00:12:56.843,566] <dbg> bt_conn: tx_notify_process: raise TX IRQ
[00:12:56.843,566] <dbg> bt_hci_core: bt_tx_irq_raise: kick TX
[00:12:56.843,597] <dbg> bt_hci_core: tx_processor: TX process start
[00:12:56.843,627] <dbg> bt_conn: bt_conn_tx_processor: start
[00:12:56.843,658] <dbg> bt_conn: bt_conn_tx_processor: no connection wants to do stuff
[00:12:56.843,688] <dbg> os: k_sched_unlock: scheduler unlocked (0x200008f8:0)
[00:12:56.843,719] <dbg> bt_hci_driver: bt_ipc_rx: RX buf payload:
00 19 00 00 38 |....8
[00:12:56.891,571] <dbg> bt_hci_driver: bt_ipc_rx: ipc data:
04 13 05 01 2f 00 01 00 |..../...
[00:12:56.891,601] <dbg> bt_hci_driver: bt_ipc_evt_recv: len 5
[00:12:56.891,632] <dbg> bt_hci_driver: bt_ipc_rx: Calling bt_recv(0x200056ec)
[00:12:56.891,662] <dbg> bt_hci_core: bt_recv_unsafe: buf 0x200056ec len 7
[00:12:56.891,693] <dbg> bt_hci_core: hci_num_completed_packets: num_handles 1
[00:12:56.891,693] <dbg> bt_hci_core: hci_num_completed_packets: handle 47 count 1
[00:12:56.891,723] <dbg> bt_conn:
How to rectify this error rectify this and get proper reading App