Search found 71 matches

by filipESP
Fri Feb 15, 2019 3:19 pm
Forum: ESP-IDF
Topic: BLE gatt_client ( do while(0) )
Replies: 6
Views: 7277

BLE gatt_client ( do while(0) )

Hi.
I wonder about the do{}while(0) loop but I don't know what is the adventage of using this code in the esp_gattc_cb() function.
Could anybody explain it?
by filipESP
Wed Jan 16, 2019 6:02 pm
Forum: ESP-IDF
Topic: Disconnect and reconnect ESP32 to hotspot.
Replies: 4
Views: 4960

Re: Disconnect and reconnect ESP32 to hotspot.

It's done. :)
by filipESP
Wed Jan 16, 2019 12:53 pm
Forum: ESP-IDF
Topic: Disconnect and reconnect ESP32 to hotspot.
Replies: 4
Views: 4960

Re: Disconnect and reconnect ESP32 to hotspot.

I resolved my issue by using esp_wifi_stop() and esp_wifi_start().
I also used the flag to notify the event_handler that it can call esp_wifi_connect ( in SYSTEM_EVENT_STA_DISCONNECTED case ) when I will want to connect to Hotspot.
by filipESP
Tue Jan 15, 2019 5:37 pm
Forum: ESP-IDF
Topic: Disconnect and reconnect ESP32 to hotspot.
Replies: 4
Views: 4960

Disconnect and reconnect ESP32 to hotspot.

Hi.
I want to disconnect wifi when it is idle for long time and reconnect when I set any GPIO to high level.
Reconnect work when I put esp_connect_wifi into event_handler in SYSTEM_EVENT_STA_DISCONNECTED case, but doesn't work when I call esp_connect_wifi in other function.
How to make it working?
by filipESP
Fri Dec 28, 2018 12:29 pm
Forum: ESP-IDF
Topic: Wifi signal power.
Replies: 7
Views: 7215

Re: Wifi signal power.

Done, Thx.
by filipESP
Fri Dec 21, 2018 6:50 pm
Forum: ESP-IDF
Topic: HTTP Server with option to edit content of page.
Replies: 9
Views: 12759

Re: HTTP Server with option to edit content of page.

I have next issue with WiFi.
I set ESP as AP and when I try to connect with it a get this log in terminal: "wifi: max connection, deauth!"
What is the reason of this statement?
by filipESP
Thu Dec 20, 2018 12:47 pm
Forum: ESP-IDF
Topic: HTTP Server with option to edit content of page.
Replies: 9
Views: 12759

Re: HTTP Server with option to edit content of page.

I changed the CONFIG_HTTPD_MAX_URI_LEN makro on higher and it is working :)))
Thx you for help.
by filipESP
Thu Dec 20, 2018 11:45 am
Forum: ESP-IDF
Topic: HTTP Server with option to edit content of page.
Replies: 9
Views: 12759

Re: HTTP Server with option to edit content of page.

Okey, I edit the page in the .user_ctx variable (in /hello uri) and now I want to intercept the data in the /echo uri. I get this LOG: W (21076) httpd_parse: parse_block: response uri/header too big W (21076) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are to...
by filipESP
Thu Dec 20, 2018 11:40 am
Forum: ESP-IDF
Topic: Wifi signal power.
Replies: 7
Views: 7215

Re: Wifi signal power.

Yeap.
by filipESP
Wed Dec 19, 2018 3:01 pm
Forum: ESP-IDF
Topic: HTTP Server with option to edit content of page.
Replies: 9
Views: 12759

Re: HTTP Server with option to edit content of page.

I don't want to change the variable value in the program, I want change it when I connect with the server on my smartphone.