Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
brutzler
@brutzler
@Links2004: pls more info
oh too late
Is there any example how to use?
Markus
@Links2004
basically the standard c time Interfaces are implemented
http://www.cplusplus.com/reference/ctime/
siedi
@siedi
as said, give me a couple of minutes and I can release my library
or use that piece of code
brutzler
@brutzler

Just trying to check the code:

int timezone = 3;
int dst = 0;
...
 configTime(3 * 3600, 0, "pool.ntp.org", "time.nist.gov");

Looks like first defined and then hardcoded? Am I right?

Markus
@Links2004
yes, the code need some update it seams.
brutzler
@brutzler
Where do I get infos about "configTime" parameters?
OK. Open the lib and read....
Markus
@Links2004
void configTime(int timezone, int daylightOffset_sec, const char* server1, const char* server2, const char* server3);
brutzler
@brutzler
daylight must be calculated manually?
Me No Dev
@me-no-dev
@brutzler will have a look at it and prolly fix it once they accept my merge
I guess it's different on a mac maybe?
brutzler
@brutzler
@me-no-dev I am working on w7/64
Me No Dev
@me-no-dev
I'm on a Mac :)
we have mDNS as part of the OS, for windows there is bonjour
brutzler
@brutzler
member of minority ..... LOL
as me :-)
Me No Dev
@me-no-dev
we are all the same here :P
Markus
@Links2004
bonjour is not needed for the arduino IDE, bonjour only needed for the browser for example
Me No Dev
@me-no-dev
sure, what I meant was that maybe apple's mdns runs query more often
siedi
@siedi
@me-no-dev I'm on Mac and have the same issue
brutzler
@brutzler
but it should be initiated from the IDE, no matter what OS
Me No Dev
@me-no-dev
@siedi I did not say I do not have it :) I say that I see the mDNS asked about it every 2 minutes
brutzler
@brutzler
mac:ms$ -> 2:1
siedi
@siedi
I was running an mdns browser to see if it is announced and it was, so it must be something with the IDE
Me No Dev
@me-no-dev
wether it's requested by the OS or by the IDE I have no idea
Dmitry Kireev
@kireevco
is there a stable and popular esp-arduino bridge protocol? something with good data structures and fail-safe?
I’ve seen some, and I’m not sure if they are used ...
Me No Dev
@me-no-dev
I know for certain that there is a bug in the IDE, but was not sure up until now if it's only on mac or what
@kireevco you mean a protocol for communication between ESP and AVR Arduino?
Dmitry Kireev
@kireevco
yep. well «protocol» is just a set of tested agreements
Me No Dev
@me-no-dev
it's really up to you wether you want to use Serial, I2C or SPI
then the other stuff is also up to what you need
brutzler
@brutzler
@all: just a thought back to sntp:
daylight must be calculated manually? or is there something ready to use?
Markus
@Links2004
daylight is not used internally set it to 0 and it will work
Dmitry Kireev
@kireevco
oh, i2c & spi - never though about it… is there anyone who maintains something ready-to-use… something like a class for arduino… initUARTEsp8266(PORT), startHttpServer() etc...
(@me-no-dev )
Me No Dev
@me-no-dev
there really can't be anything ready to use, because the data requirements differs from project to project
I have done some packet apps and some stream ones
Dmitry Kireev
@kireevco
@me-no-dev well, send/receive http data...
just a pass-through
with ArduinoJson integrated and such..
Me No Dev
@me-no-dev
HTTP data has length
Dmitry Kireev
@kireevco
I know, it is pretty trivial to implement. I was wondering if you know about someone who already did
Me No Dev
@me-no-dev
AT example from espressif :)
it's a good example for serial communication
Dmitry Kireev
@kireevco
well… yeah.
Me No Dev
@me-no-dev
I can't really think of a way to wrap soch thing into something even close to universal
Dmitry Kireev
@kireevco
let me find another one