void onBTdisconnect(notification_data* data) { Bluetooth bt = bluetooth_get_instance(); bool b =bt->onDisconnect(bt); sprintf(data->result_text,"%s",b?"disconnect success":"disconnect fail"); }