I would like to make a simple app for my iPhone, where I can turn a LED on/off. I have made the simple example “Controlling LEDs over the Internet” and can control the LED using a terminal program.
I can’t figure out how to make the iPhone send API request??? Is there a method in Xcode I can use? or is there another way of doing it.
Yeah please post the Github link because I’m starting iOS development myself and that would be a huge leap forward and a good chance to give back to the community!
I made an App to work with my project, shared here: http://community.spark.io/t/sparkcore-microview-https-post-interaction/6425
Scroll to the bottom of the first post, and you can find a dropbox link to an Xcode project archive. You will need to edit the XYZViewController.h file with your device ID and Access code.
Remember it’s only a proof of concept project, I haven’t done anything to the GUI and the two button event handlers do the same, only the params are different. I did this on purpose, so the beginner didn’t got lost in fancy functionality
@kelle also wanted to include a quick reminder that if your goal is simply to toggle an LED on and off over the net, you can always use the default Tinker app as an easy stand-in as a remote control