Control Raspberry Pi from Particle Photon

Hello Community,

I want to control certain functions on a Raspberry Pi from a Particle Photon.

The functions on the Raspberry Pi I want to control are accessible through curl commands that I can issue from my Mac. So I would like to do the equivalent from the Photon.

For instance, from the Mac I would issue the following command in Terminal:

curl http://192.168.1.50:8088/myapp/mediaplayer/setStandbyMode?value=true

Can anybody tell me how to implement this?

Thanks!

Have a look at the HTTP library in the online IDE :slight_smile: