Search found 757 matches

by ESP_Angus
Fri Feb 23, 2018 5:57 am
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 139

Re: loading AWS certs from SPIFFS

Yes, the reads seem to indicate an empty file. Are you sure the path is right? I noticed you used DEVICE_CERTIFICATE_PATH with stat and then hardcoded a path with fopen() What's the value of st->st_size after you call stat() on each file? To avoid confusion, please update your code so 'st' is initia...
by ESP_Angus
Fri Feb 23, 2018 3:49 am
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 139

Re: loading AWS certs from SPIFFS

Can you test the result of fgets()? If it returns NULL then the read failed for some reason and you'll be left with a buffer full of 0xFF plus a null terminator. This would explain the '?'s. Can you also please try changing your code to something like: memset(line, 0, sizeof(line)); int r = fread(li...
by ESP_Angus
Fri Feb 23, 2018 3:43 am
Forum: General Discussion
Topic: How to lower CPU frequency
Replies: 1
Views: 29

Re: How to lower CPU frequency

To reduce the CPU speed and reduce power, your best choice is probably to enable dynamic frequency scaling: http://esp-idf.readthedocs.io/en/latest/api-reference/system/power_management.html The default behaviour is to set minimum frequency to the crystal frequency (usually 40MHz), but you can set i...
by ESP_Angus
Thu Feb 22, 2018 10:17 pm
Forum: Report Bugs
Topic: [solved] doxygenfunction: Cannot find function “i2c_slave_read”
Replies: 3
Views: 99

Re: doxygenfunction: Cannot find function “i2c_slave_read”

do you know, why i2c_slave_read itself is not listed? i2c_slave_read_buffer is listed - but not i2c_slave_read. is it an privat interna function so the *f is not for using outside? Correct, this is an internal function only. i2c_slave_read_buffer() and i2c_slave_write_buffer() are the API for using...
by ESP_Angus
Thu Feb 22, 2018 10:15 pm
Forum: General Discussion
Topic: Hardware problem: Program only works when serial monitor is open
Replies: 5
Views: 183

Re: Hardware problem: Program only works when serial monitor is open

I know I said this already, without seeing a schematic it's really impossible to know exactly what's going on here. Going back to the absolute basics, if you flash a "blink" sketch to the program (ie no code except for blinking a single LED on and off), what situations does that work in (o...
by ESP_Angus
Wed Feb 21, 2018 11:15 pm
Forum: General Discussion
Topic: loading AWS certs from SPIFFS
Replies: 8
Views: 139

Re: loading AWS certs from SPIFFS

Probably not encrypted, unless you're using flash encryption on the ESP32. Are the certs in PEM format? (if so they should be plaintext readable)

Can you please share the code you're using to print the certificate contents?
by ESP_Angus
Wed Feb 21, 2018 11:13 pm
Forum: Report Bugs
Topic: NVS Blob operations leaking memory
Replies: 2
Views: 184

Re: NVS Blob operations leaking memory

For anyone following on at home, the discussion continues here:
https://github.com/espressif/esp-idf/issues/1642
by ESP_Angus
Wed Feb 21, 2018 11:12 pm
Forum: Report Bugs
Topic: [solved] doxygenfunction: Cannot find function “i2c_slave_read”
Replies: 3
Views: 99

Re: doxygenfunction: Cannot find function “i2c_slave_read”

Hi rudi, Some URLs changed between v2.0 and v2.1, when we cleaned up the documentation in general (including removing these warnings). Unfortunately RTD doesn't give us an easy way to forward the old URLs to the new ones, so switching versions sometimes gives these 404s. v2.1.1 is a bugfix update to...
by ESP_Angus
Wed Feb 21, 2018 11:09 pm
Forum: General Discussion
Topic: Hardware problem: Program only works when serial monitor is open
Replies: 5
Views: 183

Re: Hardware problem: Program only works when serial monitor is open

Without a schematic it's impossible to really say. However their automatic reset circuit is probably implemented with 2 of the 3 SOT23 transistors visible on the back of the PCB. The third transistor is probably for managing access to the SD card slot. I expect if you desolder the two transistors yo...
by ESP_Angus
Tue Feb 20, 2018 8:26 pm
Forum: Report Bugs
Topic: Weird monitor behaviour with printf on IDF 3.0
Replies: 4
Views: 138

Re: Weird monitor behaviour with printf on IDF 3.0

ajcalderont wrote:And now is working, without repeated spaces or characters. Thank you very much!


Thanks for confirming this. Will put a proper fix into IDF ASAP.

Go to advanced search