[SOLVED] How to do switching on Intel Edison (arduino platform)


#1

Just tell me an example to switch on Led on edison trough switch on ubidot…already try an example edison board on ubidot, but it only provide one switch name “relay” how if i want create more than one switch for example one for LED and one for Motor…plz somebody help me😓


#2

Dear @MohdHazwan,

Following the MQTT example of the Intel Edison + Arduino you will be able to control just one variable. If you desire to control more than one, you should parse the data received (subscription) per the variables desired, then in based on the last values obtained control the actuators.

If you are not a technnical person the point above can be a little bit frustrating to get started. For this, I also recommend you build you own example to make the GET request to Ubidots based on this example.

Please reference to the Ubidots REST API Reference to learn how to build the GET request to Ubidots properly!

I hope this would help you :grinning:

All the best,
Maria C.


#3

Tq…I already manage to do tht, “strcmp” can make it done


#4

I am glad to know that you figured out! If you desire, you can share it with the community for future references :wink: