Util we don't see new code just short question
We will had to enter each Sensor ID into Config.ini?
I'm not sure I understand the question. For temp and ph sensors, you can specify a name in config.h. If you switch to "temperature" branch on my github page, and see the config.h file.
Code:
#define _TEMP //comment out if no temp probe
#define MAXTEMP 2 //number of temp sensors, 1 or 2
#define TEMPADDR {0x28, 0xdf, 0x5d, 0x89, 0x05, 0x00, 0x00, 0xf8},{0x28, 0xde, 0x18, 0x5a, 0x05, 0x00, 0x00, 0x7d}
#define TEMPNAME {"Temp","Ambient"}
#define PHNAME {"pH"}
#define _PH //comment out if no ph probe or ph stamp
#define MAXPH 1 //number of ph stamps
ph code is not complete yet, but you can specify the address in a define as well like
#define PHADDR {Serial1, Serial2}
I have another question regarding web page. If I open web page in browser and leave it open for few days then I want to refresh page I got answer as "Unable to connect to Apex" Still this is not due as controller would not be on or something that.. It is due webpage again wants to authenticate again still don't show authentication page? How after a while we coudl authenticate and refresh webpage?
Ok this works if we close browser tab or window, wait a bit and then again open controller page.
Do you see this on a smartphone browser? I do get that as well on iphone safari. I do not get this on firefox on my laptop. I can refresh anytime without logging in again on my laptop. However, on the smartphone, I have to close and reload a new page.
And yes, I noticed the same thing on iphone safari. Whenever I get the cannot connect error, and keep getting that when I retry, I find that if I close the page and open a new page everything works fine. I don't know exactly why this is happening with safari on iphone.
Regarding logging in, what I do is I create a bookmark on my iphone safari browser. Then I edit the bookmark to include my login in the URL. (add the username after http:// then : then the password then @ then the url.) So when I tap on the bookmark, it will prompt me a security warning, then it will load the page without me entering the password.
So index.htm will be saved in compression shape?
We hardly wait to see new functionalities and new adds
& thanks for your time, your hard work and sharing your code with us!
Yes, I pre-compress the index.htm file using 7zip using gzip deflate compression, upload it to SD card, then send that compressed file back to the browser instead of index.htm file. The browser knows to unzip the file.
(there is more to it than that, but in general, that is how I implemented it)
BTW, the state machine algorithm I used for temp sensor is quite simple and works well, I am going to test implementing the same for the web server processing. I'll see if that helps minimize the clock on the LCD from pausing whenever the controller is handling a large web browser request without affecting the browser response time.
I will try to finish doser work as soon as I can so I can update github.