void BTsend(notification_data* data) { Bluetooth bt = bluetooth_get_instance(); if(bt-> isConnected(bt)){ String sendfilepath= getSharedResourceFile("music/Over the Horizon.mp3"); bool b=bt->FileSend(bt,sendfilepath); if(b){ sprintf(data->result_text,"%s<br>sending to<br>%s",sendfilepath,((BluetoothExtends*)bt)->remoteMACAddr); free(sendfilepath); } else { sprintf(data->result_text,"File sending failed"); } } else { sprintf(data->result_text,"not connected"); } }