Search found 57 matches

by filipESP
Wed Mar 27, 2019 11:44 am
Forum: ESP32 IDF
Topic: Update OTA example.
Replies: 4
Views: 1279

Re: Update OTA example.

I resolved it already, but I have a question. How to recognise if the .bin file is newer than previously?
I want to update the app only when will apear the new version of it.
And second Q is where i can find SimpleHTTPSerwer file ( I mean about explorer ).
by filipESP
Tue Mar 26, 2019 1:32 pm
Forum: ESP32 IDF
Topic: Update OTA example.
Replies: 4
Views: 1279

Update OTA example.

Hello, I try to test OTA example, using the Ethernet instead WiFi and I get this error: I (10124) ota: Starting OTA example... E (10124) esp_ota_ops: ota data invalid, no current app. Assuming factory I (10124) ota: Running partition type 0 subtype 0 (offset 0x00010000) Guru Meditation Error: Core 1...
by filipESP
Wed Feb 27, 2019 10:02 am
Forum: ESP32 IDF
Topic: BLE gatt_client ( do while(0) )
Replies: 6
Views: 1645

Re: BLE gatt_client ( do while(0) )

OK, and what is the difference between use:

Code: Select all

void function() { blah; blah; { int idx; for (idx = 0; idx < PROFILE_NUM; idx++) { blah; } } }
and:

Code: Select all

void function() { int idx; blah; blah; { for (idx = 0; idx < PROFILE_NUM; idx++) { blah; } } }
?
by filipESP
Mon Feb 25, 2019 4:53 pm
Forum: ESP32 IDF
Topic: BLE gatt_client ( do while(0) )
Replies: 6
Views: 1645

Re: BLE gatt_client ( do while(0) )

I mean about this code: do { int idx; for (idx = 0; idx < PROFILE_NUM; idx++) { if (gattc_if == ESP_GATT_IF_NONE || /* ESP_GATT_IF_NONE, not specify a certain gatt_if, need to call every profile cb function */ gattc_if == gl_profile_tab[idx].gattc_if) { if (gl_profile_tab[idx].gattc_cb) { gl_profile...
by filipESP
Thu Feb 21, 2019 12:28 pm
Forum: ESP32 IDF
Topic: RSSI level from AP connected to the ESP station.
Replies: 3
Views: 947

Re: RSSI level from AP connected to the ESP station.

It is already working. :)
by filipESP
Thu Feb 21, 2019 8:49 am
Forum: ESP32 IDF
Topic: RSSI level from AP connected to the ESP station.
Replies: 3
Views: 947

RSSI level from AP connected to the ESP station.

I try to get RSSI level using esp_wifi_sta_get_ap_info( wifi_ap_record_t *ap_info ) function. I read the RSSI level like this:
1. create wifi_ap_record_t ap_info variable
2.call esp_wifi_sta_get_ap_info()
3. read value, uint8_t tx_power = ap_info->rssi;
The tx_power variable is 0 all time.
by filipESP
Fri Feb 15, 2019 3:19 pm
Forum: ESP32 IDF
Topic: BLE gatt_client ( do while(0) )
Replies: 6
Views: 1645

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: ESP32 IDF
Topic: Disconnect and reconnect ESP32 to hotspot.
Replies: 4
Views: 1360

Re: Disconnect and reconnect ESP32 to hotspot.

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

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: ESP32 IDF
Topic: Disconnect and reconnect ESP32 to hotspot.
Replies: 4
Views: 1360

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?