Search found 567 matches

by PeterR
Mon Oct 12, 2020 10:12 pm
Forum: ESP-IDF
Topic: MQTT configure connection parameters not working
Replies: 2
Views: 205

Re: MQTT configure connection parameters not working

You need to supply the initialisers. Also would help to know if you are compiling C or C++. Something in the structure wants to be true or else you get the DNS error. memset() is always a good idea but in your case you want a member to be true. Won't take you long to examine the structure & trial & ...
by PeterR
Mon Oct 12, 2020 12:18 pm
Forum: General Discussion
Topic: Chrome browser refuses IDF Websocket upgrade response
Replies: 5
Views: 679

Re: Chrome browser refuses IDF Websocket upgrade response

Thanks, that works for me. For anyone following; I had to change the uri initialiser: static const httpd_uri_t mqttHandler = { .method = HTTP_GET, .handler = mqtts_process, .user_ctx = NULL, .is_websocket = true, .handle_ws_control_frames = false, .subprotocol = "mqttv3.1" }; & boost the header buff...
by PeterR
Mon Oct 12, 2020 11:52 am
Forum: General Discussion
Topic: How safe is esp_restart()?
Replies: 3
Views: 353

Re: How safe is esp_restart()?

was lookin for the 1 second pause you are talking about, is this RTC timer inside esp_restart_noos(void)? No idea & why care? Anyway, if esp_restart is not a good idea, what option do I have? esp_restart is perfectly ok. The problem is your task and/or your FLASH strategy. Tell your task to stop an...
by PeterR
Mon Oct 12, 2020 11:26 am
Forum: General Discussion
Topic: ESP32 mqtt client ws_read() failure
Replies: 18
Views: 2595

Re: ESP32 mqtt client ws_read() failure

Hi, The patch does not apply to my IDF: SHA-1: 84b51781c80740fda92784dafcfc96c13b0d8b66 The patch needs to be applied to latest IDF: SHA-1: 8bc19ba893e5544d571a753d82b44a84799b94b1 If I swap over to latest IDF & make -j8 flash then: The following Python requirements are not satisfied: gdbgui==0.13.2...
by PeterR
Mon Oct 12, 2020 12:21 am
Forum: General Discussion
Topic: How safe is esp_restart()?
Replies: 3
Views: 353

Re: How safe is esp_restart()?

Its a 'shoot myself in the head' option. The code has a sleep(1); // pause for dramatic effect before pulling the trigger. If you think about it; why wait for FLASH, what about an SD-CARD, other devices that ESP don't know about? The ESP reboot can only know about ESP devices & unless there is an 'a...
by PeterR
Fri Oct 09, 2020 3:24 pm
Forum: General Discussion
Topic: Chrome browser refuses IDF Websocket upgrade response
Replies: 5
Views: 679

Re: Chrome browser refuses IDF Websocket upgrade response

Thanks, Yes, I think you are right. I did not dig into the RFC but the subprotocol & hash were the only differences I could see. It remains though that Chrome (& I guess other WebKit browsers) will not work with the ESP MQTT client. Even if Chrome is being naughty & is outside the RFC its quite a po...
by PeterR
Wed Oct 07, 2020 11:04 pm
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 390
Views: 193393

Re: What would you like to see in The Next Chip?

@PeterR, regarding IRAM, ESP32-S2 and the following chips don't have a hard limit on the IRAM size, like ESP32 had. It is okay to use more IRAM, if necessary, this will simply reduce the size of DRAM available; and vice versa, freeing up some IRAM directly increases amount of heap. Is (what was) IR...
by PeterR
Wed Oct 07, 2020 9:26 am
Forum: General Discussion
Topic: global interrupt
Replies: 3
Views: 322

Re: global interrupt

There are few good reasons to disable all interrupts & a lot of bad ones. So its important to understand what you want to achieve. For what its worth https://esp32.com/viewtopic.php?t=10006 discusses tight loops but 'beware here be dragons' (I also wonder if the RMT module would have been a better s...
by PeterR
Tue Oct 06, 2020 10:41 pm
Forum: General Discussion
Topic: wake up esp32 at the end of the month
Replies: 3
Views: 280

Re: wake up esp32 at the end of the month

If in doubt try on an evaluation board. EDIT Like an EVB
I have not checked EVB RTC clocks but otherwise its a solid starter. You can get started on PRIME next day & with an EVB, some dupont n micreo/ada/whatever board.
Seems an easier entry then laying a PCB etc.
by PeterR
Tue Oct 06, 2020 10:30 pm
Forum: General Discussion
Topic: global interrupt
Replies: 3
Views: 322

Re: global interrupt

Global interrupt?
What does that mean? GoF epilogue available ;) ?
If you don't mind; sounds like an exam question ;)

Go to advanced search