BLE Long Read and Long Write

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

BLE Long Read and Long Write

Postby rwel59 » Tue Dec 05, 2017 1:59 am

Is there a method in the BLE library to handle long reads and writes (a couple 100 bytes) or is that something I need to build myself?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: BLE Long Read and Long Write

Postby kolban » Tue Dec 05, 2017 3:20 am

The capability is present.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: BLE Long Read and Long Write

Postby rwel59 » Tue Dec 05, 2017 2:01 pm

Neil, is this something you've built into cp_utils? I've looked through the files but didn't see anything.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: BLE Long Read and Long Write

Postby kolban » Tue Dec 05, 2017 11:28 pm

I think I incorporated it ... see the following:

https://github.com/nkolban/esp32-snippe ... c.cpp#L339
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

rwel59
Posts: 97
Joined: Thu Oct 12, 2017 3:32 pm

Re: BLE Long Read and Long Write

Postby rwel59 » Fri Dec 08, 2017 5:54 pm

Looked through the code. Can't figure out how/where is_long is set. Ended up writing something simple to get me going.

If you can give me some input on setting is_long I will go back and test out the cp_utils code.

Who is online

Users browsing this forum: No registered users and 74 guests