Search found 279 matches

by boarchuz
Tue Jan 28, 2020 9:06 am
Forum: ESP-IDF
Topic: How to find the image size for OTA
Replies: 7
Views: 1593

Re: How to find the image size for OTA

You're barking up the wrong tree. This has nothing to do with the functionality of the ESP32. There's no way to magically determine the total size if the server isn't providing that information. So you'll need to configure your server: Most servers will automatically set the Content-Length header (I...
by boarchuz
Sun Jan 26, 2020 8:50 pm
Forum: IDEs for ESP-IDF
Topic: VS Code Extension, includes missing, menuconfig not showing up [IDFGH-3001]
Replies: 4
Views: 4165

Re: VS Code Extension, includes missing, menuconfig not showing up

Squiggles: You need to set up Intellisense. Instructions here: https://github.com/espressif/vscode-esp ... URATION.md

Menuconfig: Close VS Code, delete your project's build folder, launch VS Code and try again.
by boarchuz
Sat Jan 25, 2020 12:08 pm
Forum: ESP-IDF
Topic: How to find the image size for OTA
Replies: 7
Views: 1593

Re: How to find the image size for OTA

I think what you want is the total binary size, so that you can determine the progress, eg. image_len_read / total_size * 100 = x%. Assuming you're downloading the firmware, most servers will automatically set the Content-Length header, otherwise you'll have to implement it on the server some other ...
by boarchuz
Sat Jan 25, 2020 11:54 am
Forum: ESP32 Arduino
Topic: WiFi/MQTT in setup() breaks code in loop()
Replies: 2
Views: 517

Re: WiFi/MQTT in setup() breaks code in loop()

Always boots with outPin HIGH Try initialising 'previous' with the current level, rather than defaulting to LOW. I don't expect that alone will fix it though. eg. void setup() { // ... previous = digitalRead(inPin); // <---- } Spams MQTT topic It's hard to tell which commented snippets are junk and...
by boarchuz
Wed Jan 22, 2020 8:13 am
Forum: ESP32 Arduino
Topic: ESP32 crashes after HTTP request
Replies: 8
Views: 2591

Re: ESP32 crashes after HTTP request

You probably should be checking that it began successfully. eg. bool httpInitResult = http.begin("http://192.168.0.105:485/esp32.html"); if( httpInitResult == false ) { Serial.println("http.begin() failed!"); //debug } else { int httpCode = http.GET(); if (httpCode > 0) { //Check for the returning c...
by boarchuz
Fri Jan 10, 2020 3:23 pm
Forum: General Discussion
Topic: Need Review of custom PCB design
Replies: 8
Views: 2120

Re: Need Review of custom PCB design

I'd suggest having another go at those power traces. Consider width, and more optimal routing.

Do you need that bottom-layer trace on 3V3 TP?

Check the vias for the exposed pad. Are they GND?
by boarchuz
Fri Jan 10, 2020 10:55 am
Forum: General Discussion
Topic: Trouble Waking from Ligh Sleep using ULP
Replies: 3
Views: 692

Re: Trouble Waking from Ligh Sleep using ULP

Light sleep behaviour is very different to deep sleep. Execution will continue from where it had a nap, rather than a 'reset' as with deep sleep. Try this: for(;;) { printf("Entering light sleep...\n"); vTaskDelay(500 / portTICK_PERIOD_MS); esp_light_sleep_start(); printf("Woke from light sleep!\n")...
by boarchuz
Fri Jan 10, 2020 7:22 am
Forum: ESP-IDF
Topic: ESP32 define custom esp_err_t errors and best practice
Replies: 3
Views: 786

Re: ESP32 define custom esp_err_t errors and best practice

I had the exact same query as fiveowle5. If you can use only the existing built-in esp_err_t error values, return esp_err_t. BTW, if there is some reasonably generic error that you think we've missed out, feel free to make a feature request to add it. https://docs.espressif.com/projects/esp-idf/en/l...
by boarchuz
Tue Jan 07, 2020 9:40 am
Forum: Hardware
Topic: Touch GPIO of ESP32 as soil moisture sensor
Replies: 6
Views: 1578

Re: Touch GPIO of ESP32 as soil moisture sensor

Zeni241 wrote:
Tue Jan 07, 2020 8:10 am
captouch channel.
Touch pin, touch pad. Don't overthink it.
ESP_Sprite wrote:
Tue Jan 07, 2020 8:37 am
your electrodes probably will erode away
Isn't that only a concern for resistive moisture sensors? A benefit of capacitive is that he can insulate the entire probe.
by boarchuz
Sat Jan 04, 2020 11:04 am
Forum: IDEs for ESP-IDF
Topic: Official Visual Studio Code Extension for ESP-IDF Projects
Replies: 9
Views: 12451

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Yep, official support for VS Code is very exciting. Special mention for the setup wizard - fantastic. But there are still red squiggles for all the #includes. Did you follow the setup guide here?: https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/C_CPP_CONFIGURATION.md You might...

Go to advanced search