Unfortunately, RN-171 does not support SPI. It's reserved for factory flashing and testing only - and even then they told me in a support ticket that RN-171 cannot be flashed with RN-ISP after all over SPI.
However, RN-171 does support UART which can be used with Arduino.