Hello,
I'm having problem using this library. Well, actually I cannot use it.
I downloaded it and put it inside /Arduino.app/path to includes/Time.
But... I'm not able to include it, as the compiler always gives me an error because it cannot find the library.i created the "Morse" test lib and works well, but no way to get this Time library working.
I'm 99+% sure that the Help + About Arduino panel does NOT say "last" on it.
There are all the other libraries inside this directory
I guess we'll just have to take your word for this, and that this means that you put the Time folder here, and that the Time folder contains Time.h and Time.cpp, among other things.
Therefore, we can only conclude that the Arduino IDE was designed to thwart just you. Too bad.
It's not clear in the install instructions that it is necessary to restart the IDE. It is, though, because one of the things that the IDE does on startup is populate all the drop-down lists. The list of libraries to import is determined at startup, not when the list is requested. If you change the list of libraries after the IDE is started, it doesn't know that.
That could be a problem, because I need a time()-like function that returns exactly the seconds between the 1st J. 1970 and "now". And it has to be synced with the same time() output of any other device.
Anyway I'm thinking about getting current time from a site (actually I don't know where to get it at the moment) and save it in my device (in this case iPhone). Then I'm gonna make a request to my Arduino Ethernet Server, passing current time to it.
After that, the server will connect to the same site and will get current time too.
Those two "current" time will be luckily the same, or differs in one-two seconds. So they are actually the same time.
I only need that trick to make a sort of security check...
Anyway I'm thinking about getting current time from a site (actually I don't know where to get it at the moment) and save it in my device (in this case iPhone).
My iPhone know what time it is.
Then I'm gonna make a request to my Arduino Ethernet Server, passing current time to it.
If you have an Ethernet shield, there are plenty of ways of getting the time. This is the first time you've mentioned that fact.
After that, the server will connect to the same site and will get current time too.
What server? What site? Your iPhone?
I only need that trick to make a sort of security check...
Security based on time? Everybody knows what time it is. How will that provide security?
Now, the gate is not the garage's one, but only the gate to the garden, so every security systems are useless, but i'm interested in that.
Now, let me present you my "question pattern":
: UDIDlatitudelongitudesecrethash
Basically the server gets the UDID and position of the iPhone. If the UDID is authorized and the distance between iPhone and home is lesser than Radius, then we have a probably good request
Now I need to create a variable secrethash, based on time(). Just to make possibles hacking more difficult.