Skip to content
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

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Add OTA to the device dashboard. Implement for H5 #2370

merged 1 commit into from
Sep 5, 2023

Conversation

cpq
Copy link
Member

@cpq cpq commented Sep 4, 2023

No description provided.

@cpq cpq force-pushed the ota branch 2 times, most recently from e290db7 to 8becad1 Compare September 4, 2023 20:34
Copy link
Collaborator

@scaprile scaprile left a 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)

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...

Comment on lines 38 to +42
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/*
Copy link
Collaborator

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

Comment on lines -38 to +45
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
Copy link
Collaborator

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.

@cpq cpq merged commit 2883709 into master Sep 5, 2023
73 checks passed
@cpq cpq deleted the ota branch October 6, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants