Google Cloud Platform Pub/Sub

I am wanting to publish to pub/sub which i did successfully but now i want to send a message back to the device from pub/sub which will activate a relay. I know this is possible with azure, is it possible with google cloud platform ?

Hi Josh and welcome to the community!

I’ve never done pub/sub to activate a relay, but I think is possible to do a cloud function in Google that calls the deviceOS cloud functions as stated here:
https://docs.particle.io/reference/device-os/firmware/photon/#particle-function-

Does that help?
Gustavo.

1 Like

Thank you, I will give this a try, this sounds like the solution to my problem.

1 Like

sounds good and let me (and us, in the community) know if you get in trouble with the cloud function.

1 Like