Go Down

Topic: Arduino Controller android app (Read 59 times) previous topic - next topic

marque


Hi Marque

Thanks for the excellent update, very useful and easy to adapt to my needs.
Suggestion for next update:
- login to access to the application for security reason (switch off on alarm, ..).
- in settings - add button for save profile for save configuration (conf. A, conf B, ..(I use this app to access to different arduino board with different functionality: alarm, control heat pump, lights, ...)

thx

Lesz


Profiles willen be implemented in the next version, coming next week.  Login feature is still on the drawingboard.

ruediger64

Hello Marque,
is it possible to control more than one Arduino with different IP-Adresses?
(Home Automation for different Rooms)

thx
Ruediger

marque


Hello Marque,
is it possible to control more than one Arduino with different IP-Adresses?
(Home Automation for different Rooms)

thx
Ruediger


Hi, In the next version there is support for three profiles with diferent ip adresses. I hope to finish it next week.

marque


Now there is a free version with ads as well.


On rooted phones it is already possible to back up your settings by backing up the XML file in data/data/com.marquesoft.arduinocontroller/shared_prefs

marque

#44
Apr 02, 2013, 09:48 pm Last Edit: Apr 02, 2013, 09:53 pm by marque Reason: 1
I received a question in my mail, but i prefer to give support in this forum.
Quote
Hey,

Thanks for making the app I just have one quick question.  I was looking at your example sketch (http://dl.dropbox.com/u/29369544/Arduino%20Controller/ArduinoController/ArduinoController.ino) and I am confused as to where you are sending an html line back to the app?  Can you please point me to the line of code where you send the simple html line that you can view in the browser on the phone?

Thanks, W


Hi W,
Just above setup are the html lines that are send to the android aplication;
Code: [Select]
char content_main_top[] = "<body bgcolor=black><font color=white><center>";
char S1[] = "1 is on" ;
char S2[] = "1 is off" ;
char S3[] = "2 is on";
char S4[] = "2 is off";
char S5[] = "up";
char S6[] = "down";
char S404[] = "Not Found";

The first line sets background `black`, text `white` and allignment `centered`.  The last line is the defaul one so when there is no command recognized.
The rest of the lines can be customised.

They are send in the following code;
Code: [Select]
if (x == 1)
 {client.print (content_main_top);
  client.println(S1);
  Serial.println(S1);


You donĀ“t need to use the static references, you can do the following as well;
Code: [Select]
if (x == 1)
 {client.print (content_main_top);
client.print(" Software version: ");
   client.print(sketchname);
   client.print("<br> ");
   client.print("Free Ram: ");
   client.print(freeRam());
   client.print("<br> ");
   client.print(" System time: ");
   client.print(time);


I hope you get it working! Else, please let me know.

Go Up