# Remote script execution on Pi

**URL:** <https://community.particle.io/t/remote-script-execution-on-pi/27692>\
**Category:** Raspberry Pi\
**Created:** [December 2, 2016, 7:20pm UTC](https://community.particle.io/t/remote-script-execution-on-pi/27692 "2016-12-02T19:20:14Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![comperem](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@comperem](https://community.particle.io/u/comperem)\
**Post date:** [June 4, 2017, 11:22am UTC](https://community.particle.io/t/remote-script-execution-on-pi/27692/18 "2017-06-04T11:22:48Z")

</div>

Hello @ScruffR,

Perfect. Your help solved this issue. It compiles just fine once the target device is selected. I recently added another device and had not figured out how to target one versus another.

With **no** device selected (i.e. no yellow star on the devices pane) the compiler defaults to spark, just as you pointed out.

By clicking the star on the left hand side of a device, it selects that device for compilation and targeting. That selection includes the target-specific libraries during compiling and linking. I didn’t know `platform-0` means spark and `platform-31` means Raspberry Pi. Good to know.

Image illustrating the selection:

 ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/7/7f9196999fc6d9953c0129da59ed190363a4f929.JPG)

Thanks for the careful consideration and discovering this problem.

Marc

---

_[View the full topic](https://community.particle.io/t/remote-script-execution-on-pi/27692)._
