marcoschwartz / aREST

A RESTful environment for Arduino
http://aREST.io/
Other
1.2k stars 279 forks source link

Control by Android #12

Closed robwlakes closed 10 years ago

robwlakes commented 10 years ago

Hi Marcos,

Following up my suggestions to alter the header for the aREST http GET reply, I have since been able to drive it from an App in my Android phone. I have also altered the structure of the json text/db of the reply as well to allow more systematic interrogation of the GET reply.

I am wondering if you might be interested in incorporating these type of features?

Rob

arduinocatdoor

PS My door is going to be a sliding door, that one is just a commercial example.

marcoschwartz commented 10 years ago

Hello Rob, that looks amazing! I haven't really explored the possible mobile applications of my library, but that's definitely something I want to include as well. Can you make a pull request with your code so I can see what you modified? Or at least copy/paste some code here in this issue. Thanks!

robwlakes commented 10 years ago

Hi Marcos,

So pleased to hear from you. First let me congratulate you on a fine bit of coding and presentation.

I have some tentative extra features/alterations, nothing big, to suggest, but I am pleased you are interested.

My son has recommended that I add the extras in a step wise fashion so that you can see each part as a separate bit and not just chuck it all in one hit for you tease apart. However all I have done so far is to make changes to a copy of your program and hack a "test of principle" so to speak, and not been too systematic about it. However it does work :-)

I have cloned your code to my GIT-Hub repository ready to work on it, but not done anything "official" with it yet. I am doing my grade 3 Flute exam in a week and half, and I am a bit obsessed by it at the moment. So not ready to push anything just yet.

So if you could wait a week or so I will document the couple of ideas, and then see what you can do with them.

I suspect that my suggestions, and use of the .json format, will have wider ramifications than I can program with my limited insight (ie I hack what suits me for the moment, I can't see all your bigger picture!), but with your overall view of the whole package I think you will be able to make any advantages more compatible/consistent across the package.

I really like what you have done. It is a marvel you have got something as good as that into an Arduino. The code looks tight and focused and well supported with the html and css side of things as well.

My suggestions are few, but I hope you will them useful.

Rob Ward Lake Tyers Beach, 3909 Lake Tyers Beach Website http://www.laketyersbeach.net.au XP to XUbuntu - The journey, join me! http://www.laketyersbeach.net.au/XP2XU.html

On 23/07/14 21:47, marcoschwartz wrote:

Hello Rob, that looks amazing! I haven't really explored the possible mobile applications of my library, but that's definitely something I want to include as well. Can you make a pull request with your code so I can see what you modified? Or at least copy/paste some code here in this issue. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/marcoschwartz/aREST/issues/12#issuecomment-49863413.

marcoschwartz commented 10 years ago

Hello Rob, no problem, I will be waiting for your pull request.

robwlakes commented 10 years ago

HI Marcos, I have my files ready but being a total Newb!! with GIT-Hub, especially on the web version(I am away from home this fortnight and on my old laptop which does not have the full GIT-and go installed in it. However I do have the Android program working well and I have prepared a TheCatDoor.aia file which load the MIT App Inventor file in for your perusal. The changes to make a Javascript version work almost feel trivial now, but I hope that the changes to aRest.h will meet with your approval. I am not sure how to do a pull-request so I would be happier just doing a quick email+attachments with you. if you drop me a line at rl.ward at bigpond.com I will send them to you. I look forward to your comments. I will outline my perspective in the email.

Cheers, Rob

PS An Image to whet your appetite.

selectstate