I implemented to connect other bluetooth device with my watch app using SPP. But After connected successfully when i tried to send data from watch app to connected bluetooth device it not working function return -1 error code. I m using “bt_socket_send_data” function to send data here following my code for sending data over bluetooth Please help what i m doing wrong and how can i send data from watch app to connected device over bluetooth.
char data = “test”;
int client_socket_fd = 0;
ret = bt_socket_send_data(client_socket_fd , data, sizeof(data));