I'm a beginner into Raspberry pi and i have a basic doubt.
I'm basically trying to make my raspberry pi into a beacon and advertise data from it to a Android app.
I wonder if I can give multiple terminal commands in a single file and run all the commands simply by compiling and running the file?
I followed this tutorial.
My basic doubt is that, each time i have to check if a device is available(bluetooth) and advertise it, it takes a command for each of this. Can i integrate multiple raspberry pi commands into a file and run all these commands simply by compiling and running the file (as a script)?
Few of the commands are as follows :
sudo hcitool lescan,
sudo hcitool hci0,
sudo hcitool -i hci0 0x008,
and few commands like these..