Search found 7 matches
- Fri Jul 19, 2019 5:22 am
- Forum: ESP32 IDF
- Topic: Request: Extend "esp_bt_gap_register_callback" related functions to include context like WiFi api
- Replies: 0
- Views: 225
Request: Extend "esp_bt_gap_register_callback" related functions to include context like WiFi api
Hi All, I have been working the esp for a while now with c++ classes and have been able to create static helper functions to be able to define various callback functions from within the class itself. This is particularly helpful if I was to use multiple instances of the same class. One such example ...
- Mon Jul 08, 2019 2:43 am
- Forum: General Discussion
- Topic: JTAG Eclipse issues. Cmd prompt maybe?
- Replies: 3
- Views: 869
JTAG Eclipse issues. Cmd prompt maybe?
I am having an issue with eclipse when trying to debug. it keep showing the error "Could not determine GDB version using command: xtensa-esp32-elf-gdb --version". I immediately thought this was a pathing issue. I tested everything with in CLI with mingw32.exe and it all works fine. Knowing that I ha...
- Tue Jun 25, 2019 6:50 am
- Forum: General Discussion
- Topic: Tcp socket closed detection
- Replies: 2
- Views: 452
Re: Tcp socket closed detection
Found the solution. if the bytes returned is == 0, the socket has closed. -1 means not bytes received and > 0 is the actual count. Interesting that 0 and -1 are like they are, I thought they would've swapped. solution: char buf[256]; int bytes_received = recv(wifiState.clientSocket, buf, 10, MSG_DON...
- Thu Jun 20, 2019 11:05 pm
- Forum: General Discussion
- Topic: Tcp socket closed detection
- Replies: 2
- Views: 452
Tcp socket closed detection
I have created a TCP client over wifi with the ESP and it connects to my TCP Server on my windows pc just fine. I can do data transmissions, send and receive. Though if I close the server connection I don't get any notification nor can I find a way to poll for if the socket is still active. The only...
- Fri Jan 11, 2019 4:19 am
- Forum: General Discussion
- Topic: After booting, DMA fed ADC sometimes shows 4095 always!
- Replies: 0
- Views: 408
After booting, DMA fed ADC sometimes shows 4095 always!
I am currently working with the adc on a WROVER module on some custom hardware. I can confirm that the signal being fed into the adc has a steady state value of 200mV. This with a 3.3V reference results in ~200 as a raw adc sample. After rebooting my unit, specifically power cycling rather than usin...
- Thu Dec 06, 2018 2:08 am
- Forum: General Discussion
- Topic: ADC speed?
- Replies: 25
- Views: 22116
Re: ADC speed?
Your code is exactly what I have been looking for trying to dma an adc buffer. However when I change the input from ADC Chan 0 to ADC chan 5, IO33 that I am using. I appear to have a value of 24575 at 0V and 20480 at 3.3V. What are these values actually supposed to represent? they're linear and scal...
- Tue Oct 09, 2018 12:59 am
- Forum: ESP32 IDF
- Topic: Project structure compile errors
- Replies: 1
- Views: 538
Project structure compile errors
Hi Team, I have been struggling with trying to restructure my esp32 application to give the following directory structure: components/ - drivers/ + component1/ - component1_type1.cpp - component1_type1.h + common/ - utilities.cpp - utilities.h - hal/ +i2c.cpp +i2c.h main/ - app.cpp - app.h Funnily e...