Search found 60 matches

by Trialblazer47
Mon Jul 31, 2017 6:31 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 2627

Re: BLE disconnect event??

If a peer explicitly disconnects, I have seen that CLOSE event arrive immediately. I am guessing that if the peer doesn't disconnect but just gets lost or disappears ... then there will be a timeout before the disconnection as ping missed would be sent and not responded to. It is likely that the ti...
by Trialblazer47
Mon Jul 31, 2017 2:09 pm
Forum: General Discussion
Topic: BLE disconnect event??
Replies: 9
Views: 2627

BLE disconnect event??

Hi, I want to know is there any Event called in BLE when peer device disconnects or disconnects on power off or some things? Particulary I want to know this for gattc or gatt client. Currently I am getting ESP_GATTC_CLOSE_EVENT which is called after a long time of disconnection(after a min or so). ....
by Trialblazer47
Fri Jul 28, 2017 4:54 am
Forum: General Discussion
Topic: why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?
Replies: 5
Views: 1195

Re: why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?

I wasn't taking about case switch break. there is and if()
here
case ESP_GATTC_GET_CHAR_EVT:
if (p_data->get_char.status != ESP_GATT_OK) {
break;
}
which you said if get_char.status !=0 .
by Trialblazer47
Thu Jul 27, 2017 3:11 pm
Forum: General Discussion
Topic: why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?
Replies: 5
Views: 1195

Re: why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?

Ok thanks I thought once it is called all the characteristics should be discovered but I think thats why there is an if with break. that is if the characteristics are all found then break.. so if there are 3 characteristics then ESP_GATTC_GET_CHAR_EVT will be called 4 times and will break in 4th cal...
by Trialblazer47
Thu Jul 27, 2017 1:20 pm
Forum: General Discussion
Topic: why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?
Replies: 5
Views: 1195

why call esp_ble_gatt_get_characteristic() in ESP_GATTC_GET_CHAR_EVENT?

I am trying to understand demo code of BLE gattc_demo.c and I am running it and testing it with NRF51. What I don't understand is esp_ble_gatt_get_characteristic is called after search is commplete(ESP_GATTC_SEARCH_CMPL_EVT) thats fine. But onces its called for Charateristics Search in that event ag...
by Trialblazer47
Wed Jul 26, 2017 7:20 am
Forum: ESP32 IDF
Topic: gattc open issue
Replies: 10
Views: 3424

Re: gattc open issue

no I don't close connection. I just reset ESP while its connected.

Here is video that shows the issue.
https://www.youtube.com/watch?v=A-Qm5_F ... e=youtu.be
by Trialblazer47
Tue Jul 25, 2017 12:24 pm
Forum: ESP32 IDF
Topic: gattc open issue
Replies: 10
Views: 3424

Re: gattc open issue

I also get same error. [0;32mI (19382) GATTC_DEMO: [0m [0;32mI (19392) GATTC_DEMO: Searched Device Name Len 0[0m [0;32mI (19402) GATTC_DEMO: Stop scan successfully[0m [0;31mE (19742) BT: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x003e[0m [0;31mE (19742) BT: bta_gattc_conn_cback() ...
by Trialblazer47
Thu Jun 29, 2017 7:40 pm
Forum: ESP32 IDF
Topic: [Answered] How to use esp_wifi_set_auto_connect()?
Replies: 5
Views: 3001

Re: [Answered] How to use esp_wifi_set_auto_connect()?

can you please provide more details on how its done? I want to do this. store the wifi details and retrive it every time I restart.
by Trialblazer47
Thu Jun 29, 2017 7:35 am
Forum: General Discussion
Topic: BLE GATT CLIENT MQTT gateway.
Replies: 1
Views: 1405

Re: BLE GATT CLIENT MQTT gateway.

I have made some psudo code in esp32-mqtt to set wifi setting if they are available in storage or if not available start BLUFI. here it is, can some one confirm its ok ? I will other functions later. void app_main() { INFO("[APP] Startup..\n"); INFO("[APP] Free memory: %d bytes\n", system_get_free_h...
by Trialblazer47
Tue Jun 27, 2017 12:00 pm
Forum: General Discussion
Topic: BLE GATT CLIENT MQTT gateway.
Replies: 1
Views: 1405

BLE GATT CLIENT MQTT gateway.

Hi everyone, I am working on project that which will connect to BLE devices we have made and send data to Broker on via MQTT and also will require to set wifi setting and restore it if reset or restarted. I am right now working with 3 example codes of ESP32 (this is my first time working with IDF, I...

Go to advanced search