xTaskCreate();

I use Bluetooth for this case! This is my Bluetooth transmission code and in the dk_task section I made a command to wait for data from Bluetooth then execute the dk_task command.