Search found 737 matches

by kolban
Fri Jun 23, 2017 1:13 am
Forum: ESP32 SDK
Topic: BLE: Contents of correct response for ESP_GATTS_WRITE_EVT
Replies: 0
Views: 20

BLE: Contents of correct response for ESP_GATTS_WRITE_EVT

When writing a BLE GATTS server, I am responding to ESP_GATTS_WRITE_EVT which is raised in response to a partner asking to write a new value to the characteristic hosted on my GATTS server. The incoming structure associated with this event includes a flag called "need_rsp" which indicates ...
by kolban
Thu Jun 22, 2017 2:15 pm
Forum: General Discussion
Topic: Communicate ESP32 to ESP32 over BLE
Replies: 2
Views: 68

Re: Communicate ESP32 to ESP32 over BLE

I'm tinkering with some C++ classes that encapsulate Bluetooth as found in ESP-IDF. These classes both expose all the power while hiding the lower level complexities. I'm still thinking through the class structures but have the C level APIs working. The reason I mention this ... is to ask ... would ...
by kolban
Thu Jun 22, 2017 4:39 am
Forum: ESP32 SDK
Topic: Sequence flow for BLE advertising ... must I wait for an ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT?
Replies: 0
Views: 27

Sequence flow for BLE advertising ... must I wait for an ESP_GAP_BLE_ADV_DATA_SET_COMPLETE_EVT?

When creating a BLE peripheral which will be advertising its existence, I understand that I must call: esp_ble_gap_config_adv_data() to set the content of the advertisement and then call esp_ble_gap_start_advertising() to begin the actual advertising procedure. However, my question is about timing. ...
by kolban
Wed Jun 21, 2017 2:21 pm
Forum: General Discussion
Topic: BLE scanner
Replies: 4
Views: 101

Re: BLE scanner

I'm going to stick my neck out and say that the example shown in your last post should be flagged as "ultra low level". I would not recommend anyone to use the Host Controller Interface (HCI) unless they absolutely know what they are doing and have a skill of 7 out of 10 (at least) in Blue...
by kolban
Wed Jun 21, 2017 5:07 am
Forum: General Discussion
Topic: NetBeans IDE
Replies: 1
Views: 51

Re: NetBeans IDE

In theory/principle ... the answer is likely to be yes. Let us assume that NetBeans IDE has the ability to invoke an arbitrary "make" system (which is what Eclipse does). Then the primary features you will get from NetBeans (or any other IDE ... eg. Eclipse) will be: 1. Ability to edit sou...
by kolban
Wed Jun 21, 2017 5:01 am
Forum: General Discussion
Topic: BLE scanner
Replies: 4
Views: 101

Re: BLE scanner

BLE is a tricky little beastie. Full of acronyms, concepts, states, events and more. However, at a higher level, it sounds like you want a BLE Peripheral and BLE Central. The BLE Peripheral will advertise its existence and the BLE Central will scan for advertising peripherals. Once the Peripheral ma...
by kolban
Wed Jun 21, 2017 4:42 am
Forum: General Discussion
Topic: Help on BLE Notify
Replies: 5
Views: 578

Re: Help on BLE Notify

Can you describe in more detail the nature of your puzzle/problem?
by kolban
Tue Jun 20, 2017 11:24 pm
Forum: ESP32 SDK
Topic: BLE events ESP_GAP_BLE_LOCAL_IR_EVT and ESP_GAP_BLE_LOCAL_ER_EVT
Replies: 0
Views: 22

BLE events ESP_GAP_BLE_LOCAL_IR_EVT and ESP_GAP_BLE_LOCAL_ER_EVT

There are a couple of events that I am receiving when programming with BLE that I don't understand and can't seem to find through the obvious research places. The events are called: * ESP_GAP_BLE_LOCAL_IR_EVT * ESP_GAP_BLE_LOCAL_ER_EVT Does anyone know what these events mean and the data types (if a...
by kolban
Tue Jun 20, 2017 10:00 pm
Forum: General Discussion
Topic: Wait microsecond
Replies: 6
Views: 709

Re: Wait microsecond

by kolban
Tue Jun 20, 2017 9:59 pm
Forum: ESP32 SDK
Topic: Need API support to provide micro seconds delay
Replies: 6
Views: 101

Re: Need API support to provide micro seconds delay

You might want to take a look at gettimeofday(). Apparently (by reading the docs) it returns a time stamp down to the microsecond level. In principle, you could look around using gettimeofday until your interval has elapsed.

Go to advanced search