Search found 300 matches

by fly135
Sat Aug 18, 2018 2:22 pm
Forum: General Discussion
Topic: Not understanding OTA walk-through
Replies: 9
Views: 187

Re: Not understanding OTA walk-through

I reread your original post again and you did build and flash the ota example. However you also said that the esp32 ran hello world when you ran it again. It should have run the ota example. And the ota example program has the wifi code in it. The real question is why your esp32 ran the hello world ...
by fly135
Fri Aug 17, 2018 7:45 pm
Forum: ESP32 Arduino
Topic: Why each instance of my class consume 20byte of memory at least?
Replies: 9
Views: 216

Re: Why each instance of my class consume 20byte of memory at least?

I use Class cause I got functions in it and I got Inheritance(I use the list to hold the base class's pointer). I don't know if I could replace class with struct.I never used a struct before... Kolban's approach only allocates one block of memory. So you only get the overhead of one heap object. I'...
by fly135
Fri Aug 17, 2018 7:34 pm
Forum: ESP32 IDF
Topic: Program Flow and timing
Replies: 7
Views: 207

Re: Program Flow and timing

When you move the gpio set high outside the loop, it looks like the delay loops were optimized away. Try declaring runCount3 as volatile. Assuming high turns the led on, if the loops are optimized out the leds would be immediately turned off.

John A
by fly135
Thu Aug 16, 2018 7:08 pm
Forum: ESP32 IDF
Topic: http request over ethernet
Replies: 7
Views: 196

Re: http request over ethernet

Hi all, I want to send data using http server. the http_request example is given in esp idf over wifi. can we use that example over ethernet?? My guess would be that wifi vs internet is transparent to the http server code. So the question would be... do you know how to start up the ethernet? Do you...
by fly135
Thu Aug 16, 2018 6:59 pm
Forum: General Discussion
Topic: OTA and the otadata partition
Replies: 8
Views: 112

Re: OTA and the otadata partition

I had OTA in my project before esp_https_ota was available (or knew about it). I used the example OTA project and all the steps regarding figuring out the partition to write to and other things could be figured out from looking at the code. Basically you had to have a lot of code in your project to ...
by fly135
Thu Aug 16, 2018 6:53 pm
Forum: General Discussion
Topic: OTA and the otadata partition
Replies: 8
Views: 112

Re: OTA and the otadata partition

I'm using IDF ver 3.0.2 release. That version doesn't have the new esp_http_client and esp_https_ota. But I also have the IDF master on my computer. So I went that IDF and copied the esp_http_client and esp_https_ota folders into a components folder local to my project. If you are building with a st...
by fly135
Thu Aug 16, 2018 6:42 pm
Forum: ESP32 Arduino
Topic: Why each instance of my class consume 20byte of memory at least?
Replies: 9
Views: 216

Re: Why each instance of my class consume 20byte of memory at least?

Any time you allocate something on a heap it's going to add a few bytes for heap management. The heap management needs to know where the next block of free memory exists and the size of the current allocated block. The heap manager needs to be able to tell if it's management info is sane or corrupte...
by fly135
Thu Aug 16, 2018 6:31 pm
Forum: General Discussion
Topic: Task watchdog issue
Replies: 4
Views: 131

Re: Task watchdog issue

ESP_Sprite wrote:A watchdog triggering usually is a symptom of an underlying issue.

Like doing OTA? :D
by fly135
Thu Aug 16, 2018 6:28 pm
Forum: General Discussion
Topic: OTA and the otadata partition
Replies: 8
Views: 112

Re: OTA and the otadata partition

Also... the esp_https_ota requires https and certificate. You can just comment out the test for it and use http or https without certificate. if (!config->cert_pem) { ESP_LOGE(TAG, "Server certificate not found in esp_http_client config"); //return ESP_FAIL; } ... <snip> ... if (esp_http_c...
by fly135
Thu Aug 16, 2018 6:25 pm
Forum: General Discussion
Topic: OTA and the otadata partition
Replies: 8
Views: 112

Re: OTA and the otadata partition

Thanks for the answers, Neal. John: that's a very interesting idea. How do I control which partition is written to? I don't see any information like that in the esp_http_client_config_t struct (nor would I expect to). It figures it out all on it's own. I defined two OTA partitions and that code jus...

Go to advanced search