-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SNTP from DHCP #2798
base: main
Are you sure you want to change the base?
Add SNTP from DHCP #2798
Conversation
Ensure the SNTP service is stopped before configure. Change default servers to seperate concerns.
Automated fixes for code style.
…bea-ae52-4668-9824-bc42dd0454a3 Code style fixes for nanoframework/nf-interpreter PR#2798
Improve default MAC (set to developer)
All of the changes in this PR seem to help, but still suffering from the underlying issue sometimes (what ever it may be). Hopefully it will help future debugging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comments.
If we're going forward with this (which I agree that's a good improvement) for consistency sake, it has to behave the same way in the other platforms.
Let me know if you want me to take care of that.
@@ -91,42 +91,42 @@ | |||
* @brief MAC Address byte 0. | |||
*/ | |||
#if !defined(LWIP_ETHADDR_0) || defined(__DOXYGEN__) | |||
#define LWIP_ETHADDR_0 0xC2 | |||
#define LWIP_ETHADDR_0 0x00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change in the default MAC address? This is was using ST default for development devices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static void initialize_sntp() | ||
{ | ||
sntp_stop(); | ||
sntp_setoperatingmode(SNTP_OPMODE_POLL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to lwIP docs, this is already the default, so there's no need for this call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, I was just copying the mechinisum used by ESP32. Also, the particular line you are commenting on was already present (just moved so it was not duplicated).
Co-authored-by: José Simões <[email protected]>
Automated fixes for code style.
Yes, please adjust what you see fit to bring inline with other platforms etc. |
…ad3-3634-462a-9d4d-d9e58e668014 Code style fixes for nanoframework/nf-interpreter PR#2798
Add to other platforms
@josesimoes I had a bit of time, so have "attempted" to add to other platforms. |
Automated fixes for code style.
…a79-253e-4c86-86fb-6825f847757f Code style fixes for nanoframework/nf-interpreter PR#2798
make static again. move above all functions that use it.
02e0d18
to
591537f
Compare
288fd6f
to
c6dee33
Compare
f1c86c5
to
449142a
Compare
Description
Motivation and Context
How Has This Been Tested?
Tested on an STM32F769I
Before, devices failed to get time from network helper in a reasonable timeframe.
It is now pretty much instantanious for me.Edit: spoke too soon.Screenshots
Types of changes
Checklist