-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 OTA to the device dashboard. Implement for H5 #2370
Conversation
e290db7
to
8becad1
Compare
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.
Is there a reason for the late Ethernet init ? All our examples do it early (as did this one before this commit)
mongoose/examples/stm32/nucleo-f746zg-make-baremetal-builtin/main.c
Lines 35 to 39 in d5b5cec
int main(void) { | |
gpio_output(LED); // Setup blue LED | |
uart_init(UART_DEBUG, 115200); // Initialise debug printf | |
ethernet_init(); // Initialise ethernet pins | |
MG_INFO(("Starting, CPU freq %g MHz", (double) SystemCoreClock / 1000000)); |
and the tutorial shows that...
packed_fs.c: $(wildcard web_root/*) $(wildcard certs/*) Makefile web_root/main.css web_root/bundle.js | ||
$(GZIP) web_root/* | ||
$(CC) ../../test/pack.c -o $(PACK) | ||
$(PACK) $(wildcard web_root/*) $(wildcard certs/*) > $@ | ||
$(PACK) web_root/* certs/* > $@ | ||
$(GZIP) -d web_root/* |
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 the fs tutorial I solved this with another rule... asterisks usually don't play nice in Windoze
ethernet_init(); // Initialise ethernet pins | ||
|
||
MG_INFO(("Starting, CPU freq %g MHz", (double) SystemCoreClock / 1000000)); | ||
struct mg_mgr mgr; // Initialise | ||
mg_mgr_init(&mgr); // Mongoose event manager | ||
mg_log_set(MG_LL_DEBUG); // Set log level | ||
|
||
// Initialise Mongoose network stack | ||
ethernet_init(); // Initialise ethernet pins |
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.
All other examples init Ethernet before fiddling with Mongoose.
No description provided.