Search found 214 matches
- Tue Mar 28, 2017 3:10 pm
- Forum: ESP-IDF
- Topic: lwIP reconnect same address+port
- Replies: 3
- Views: 6698
Re: lwIP reconnect same address+port
As you're using ssl client, I think it's better to use random local port by passing 0 as port number. Aah right, I had set up the bind to: bind to the same local port. I've now changed it to zero and its working fine. Thanks. You might want to look into the SO_REUSEADDR option. Even with SO_REUSEAD...
- Tue Mar 28, 2017 9:30 am
- Forum: ESP-IDF
- Topic: lwIP reconnect same address+port
- Replies: 3
- Views: 6698
lwIP reconnect same address+port
Hello all, I've been looking for a way to reconnect my ssl connection. I can set-up my connection and close it, but then I have to wait a certain amount of time before binding/connecting on the same address+port according to: Only after some time (minutes) the resources are completely cleared in the...
- Fri Mar 24, 2017 1:00 pm
- Forum: General Discussion
- Topic: Need More SRAM
- Replies: 1
- Views: 3524
Re: Need More SRAM
disable the bluetooth stack in sdkconfig I believe bt reserves 64k of mem and adds another 28k when you initialize it. The memory is divided into 5 parts, you should have a look at the documentation. I also was advised to look at heap_alloc_caps.c it gives a good view of what memory is where and wha...
- Fri Mar 24, 2017 12:37 pm
- Forum: ESP-IDF
- Topic: Platformio issue
- Replies: 7
- Views: 18124
Re: Platformio issue
I've seen that error C99 designator 'ssid' outside aggregate initializer at line ... When I try to compile the c code in a cpp file. You can't initialize a struct in c++ like this: wifi_config_t wifi_config = { .sta = { .ssid = EXAMPLE_WIFI_SSID, }, }; It should generate an error. Are you not gettin...
- Fri Mar 10, 2017 9:34 am
- Forum: General Discussion
- Topic: JTAG Debugging "Failed to verify app image @0x10000 <8194>"
- Replies: 8
- Views: 11130
Re: JTAG Debugging "Failed to verify app image @0x10000 <8194>"
I've had a similar problem using VisualGDB, They responded on their forum saying to edit the Debug setting Flash timeout in VisualGDB project properties. I set it to 10000. Or open with notepad: "YourProjectNameHere-Debug.vgdbsettings" located in your project folder and add <KeyValue> <Key>com.syspr...
- Thu Mar 09, 2017 3:16 pm
- Forum: General Discussion
- Topic: SSL_READ and SSL_WRITE with timeouts non-blocking
- Replies: 2
- Views: 6233
Re: SSL_READ and SSL_WRITE with timeouts non-blocking
Hi, I use this to set my ssl connection to non-blocking.
SSL_get_fd(1) is from openssl/ssl.h
fcntl(3) is from lwip/sockets.h see lwip_fcntl
SSL_get_fd(1) is from openssl/ssl.h
fcntl(3) is from lwip/sockets.h see lwip_fcntl
Code: Select all
//non-blocking connection
int fd = SSL_get_fd(_ssl);
fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK);
SSL_set_fd(_ssl, fd);
- Thu Mar 09, 2017 12:58 pm
- Forum: ESP-IDF
- Topic: Bluetooth initialization fails
- Replies: 6
- Views: 10263
Re: Bluetooth initialization fails
Yeah, modifying the partition file works pefectly. I was over the 1M limit! thanks alot.
- Thu Mar 09, 2017 9:06 am
- Forum: ESP-IDF
- Topic: Bluetooth initialization fails
- Replies: 6
- Views: 10263
Re: Bluetooth initialization fails
I use VisualGDB, I have to make those changes there. You are correct! I have grown over some other data needed by the bluetooth init. When growing INSTR_FLASH over an specific amount between 874KB and 883KB(might just be between 882~885KB, looking at my other log) From: 1> ------------------- Memory...
- Wed Mar 08, 2017 5:22 pm
- Forum: ESP-IDF
- Topic: Bluetooth initialization fails
- Replies: 6
- Views: 10263
Re: Bluetooth initialization fails
i've defined: #define CONFIG_LOG_BOOTLOADER_LEVEL 5 #define CONFIG_LOG_DEFAULT_LEVEL 5 #define CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE 1 #define CONFIG_LOG_DEFAULT_LEVEL_VERBOSE 1 But I don't see any extra lines in the debug output, am I missing a define for bootloader log? http://pastebin.com/AKiumv6k
- Wed Mar 08, 2017 4:42 pm
- Forum: General Discussion
- Topic: BLE Scan and obtain RSSI
- Replies: 12
- Views: 30291
Re: BLE Scan and obtain RSSI
in the "esp_gap_cb" function, case: "ESP_GAP_BLE_SCAN_RESULT_EVT" the param argument is cast to scan_result(in the example). This struct contains all the information you need. From esp_gap_ble_api.h: struct ble_scan_result_evt_param { esp_gap_search_evt_t search_evt; /*!< Search event type */ esp_bd...