Search found 26 matches

by kluverp
Tue Nov 03, 2020 12:58 pm
Forum: ESP-IDF
Topic: using <cstring> header in IDF v4.1
Replies: 1
Views: 3070

Re: using <cstring> header in IDF v4.1

Found the issue myself...

Silly mistake. I had a component with a file called "string.h". That is not a good idea...
by kluverp
Tue Nov 03, 2020 12:24 pm
Forum: ESP-IDF
Topic: using <cstring> header in IDF v4.1
Replies: 1
Views: 3070

using <cstring> header in IDF v4.1

Hi all, The search is broken on this site, so I was unable to seach for this question. I have a ESP32 C++ project, running on IDF version 4.1. When I include the <cstring> header like so: #include <cstring> /** * Main entry point application */ void app_main() { char foo[100]; strncpy(foo, "test", s...
by kluverp
Tue Jul 14, 2020 2:30 pm
Forum: ESP-IDF
Topic: SIM800 TTGO TCALL pppos_client
Replies: 11
Views: 15626

Re: SIM800 TTGO TCALL pppos_client

Same problem here.

Does anyone have an example of this working?
by kluverp
Tue Nov 19, 2019 6:03 am
Forum: ESP-IDF
Topic: Bluetooth Classic pairing on/off
Replies: 4
Views: 9306

Re: Bluetooth Classic pairing on/off

https://docs.espressif.com/projects/esp-idf/en/stable/api-reference/bluetooth/esp_gap_bt.html#_CPPv418esp_bt_gap_set_pin17esp_bt_pin_type_t7uint8_t17esp_bt_pin_code_t https://github.com/espressif/esp-idf/blob/6517c5033aab27afe491e433d6beeba93dfb1aa7/examples/bluetooth/bluedroid/classic_bt/bt_spp_ac...
by kluverp
Tue Nov 19, 2019 5:40 am
Forum: General Discussion
Topic: ESP32 Bluetooth SPP with bidirectional communication (send and receive)
Replies: 22
Views: 60910

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

If you are flashing this code, i am guessing it is just echoing received data: case ESP_SPP_DATA_IND_EVT: #if (SPP_SHOW_MODE == SPP_SHOW_DATA) ESP_LOGI(SPP_TAG, "ESP_SPP_DATA_IND_EVT len=%d handle=%d", param->data_ind.len, param->data_ind.handle); if (param->data_ind.len < 1023) { snprintf(buf, (si...
by kluverp
Mon Nov 18, 2019 12:19 pm
Forum: ESP-IDF
Topic: Bluetooth Classic pairing on/off
Replies: 4
Views: 9306

Re: Bluetooth Classic pairing on/off

https://docs.espressif.com/projects/esp-idf/en/stable/api-reference/bluetooth/esp_gap_bt.html#_CPPv418esp_bt_gap_set_pin17esp_bt_pin_type_t7uint8_t17esp_bt_pin_code_t https://github.com/espressif/esp-idf/blob/6517c5033aab27afe491e433d6beeba93dfb1aa7/examples/bluetooth/bluedroid/classic_bt/bt_spp_ac...
by kluverp
Mon Nov 18, 2019 10:00 am
Forum: General Discussion
Topic: ESP32 Bluetooth SPP with bidirectional communication (send and receive)
Replies: 22
Views: 60910

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

You just have to combine receiving and sending, like in this simple example based on example_spp_acceptor_demo.c /* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASI...
by kluverp
Mon Nov 18, 2019 6:10 am
Forum: ESP-IDF
Topic: Bluetooth Classic pairing on/off
Replies: 4
Views: 9306

Bluetooth Classic pairing on/off

Hi all, I'am working on a esp32 project that uses Bluetooth. Now I'am looking into the Bluetooth classic example using SPP (the "bt_spp_acceptor" as a starting point). This is exactly what I need, so I can use the Bluetooth connection as a serial port. Now the real question: I can connect with any d...
by kluverp
Thu Jan 24, 2019 2:31 pm
Forum: ESP-IDF
Topic: OTA simple example without certificate check
Replies: 3
Views: 9729

OTA simple example without certificate check

Hi All, I'm running the OTA "simple example" which is based on the esp_http_client library. Now, the documentation says, that if you do not want to verify the host, you can omit the "config.cert_pem" entry. However, when I leave this out like so: esp_http_client_config_t config; config.url = C_ota_u...
by kluverp
Tue Jan 22, 2019 11:24 am
Forum: Hardware
Topic: LAN8720 manual reset
Replies: 4
Views: 9303

Re: LAN8720 manual reset

I found the issue! The address of the LAN8720 is set to 0 after pulling the reset wire low. However my system works on address 1. This works the first time initially. But when the LAN8720 gets a reset, it changes to 0. THe ESP32 however has hardcoded address 1 in it's source-code. Therefore the rest...