Forcing a date change
Forcing a date change
How to construct the url to force a time change through wifi directly, instead of Client?
Roberto.
Re: Forcing a date change
Here's how to update date/time without using the client:rimai wrote:How to construct the url to force a time change through wifi directly, instead of Client?
Code: Select all
http://CONTROLLER_IP:2000/dHHMM,MMDD,YY
- HH - hours
- MM - minutes
- , - comma
- MM - month
- DD - day
- , - comma
- YY - year (since 2000)
Set the date to August 8th, 2011 at 9:30am
Code: Select all
http://CONTROLLER_IP:2000/d0930,0808,11
Code: Select all
Success - <D>OK</D>
Error - <D>ERR</D>
curt
Re: Forcing a date change
The library is missing some code after line 536 on ReefAngel_Wifi.cpp
It needs this:
This is to save the values into the RTC chip. Otherwise the data goes right back to where it was on the next RTC sync or when rebooted.
Let me know if you need a pull request or this is sufficient.
It needs this:
Code: Select all
now();
RTC.set(now());
Let me know if you need a pull request or this is sufficient.
Roberto.
Re: Forcing a date change
Ok, thanks. I can add this in no problem. I've got a handful of changes in my dev branch that aren't reflected on github yet.rimai wrote:The library is missing some code after line 536 on ReefAngel_Wifi.cpp
It needs this:This is to save the values into the RTC chip. Otherwise the data goes right back to where it was on the next RTC sync or when rebooted.Code: Select all
now(); RTC.set(now());
Let me know if you need a pull request or this is sufficient.
I'll make this change tonight.
curt