Quick and dirty example of dumping IQ samples from airspy SDRs. This is configured to dump CAP_SAMPS samples at 6MHz, with preconfigured gain settings and write them to a file.
(This works and was tested as of April 6, 2025 on an Airspy Mini)
sudo apt-get install libairspy-dev
Sometimes you may want to use this to look at protocols like LoRA, to do an FFT waterfall, and if you want, with a Y stretch. Other times you want to look at it with time domain, for developing OOK or similar protocols.