[SOLVED] Use switch to control spark functions?

Hi is it possible to use a use switch to trigger Spark functions? perhaps this is a future feature? Thanks, J

Hi J, here’s out tutorial to read data form Ubidots using the Spark:

http://ubidots.com/docs/devices/sparkcore_get.html#devices-sparkcore-get

I am reviving an old post. Over a year ago, J asked a good question. The answer might have been the best at the time, but I was hoping that there might be a better solution by now. The link points to a description of how to read Ubidot data. The tutorial shows how to repeatedly pole a data value (by continually sending GET calls) and then having the program react accordingly. But I think the question was really about how to call a function on the Photon that has been exposed. That is, the photon should be able to sit quietly and wait for an instruction. The Tinker sketch on the Photon allows the iPhone to send a function call that has been exposed, for example, by “Spark.function(“digitalwrite”, tinkerDigitalWrite);” Is there an equivalent way to do this from the Ubidots widget on the dashboard? Thanks for any help.

bumping this topic as I have the same requirement.

I have exposed functions, and just want a button to call them.

Hey everyone, thanks for your patience. We have our MQTT version almost ready, this will solve this requirement. Release target date is early June; will keep you posted here.

Hi all, our MQTT documentation is available at: http://ubidots.com/docs/api/index.html#mqtt-api-reference

We’re working on an MQTT Ubidots Particle Library too.

Hey everyone,
Our MQTT Ubidots Particle library is available at : https://github.com/ubidots/ubidots-particle-mqtt

Best regards,
Metavix