On 06/01/2016 08:32 PM, Christopher Collins wrote:
On Wed, Jun 01, 2016 at 07:24:01PM +0200, Stephane D'Alu wrote:
Hello again,

I was trying to add a service/characteristic to the bleprph example, and
thought it would be as simple as:

* add a gatt_svr_chr_access_ function
* add the service definition in gatt_svr_svcs
* increase some configuration values (max_services, max_attrs)
    to be safe

Once done, I'm not able to discover services anymore.
Did I miss something?

(Using gcc 4.9.2, and newt 0.9.0)

Hi Stephane,

It looks like you found a bug in the nimble host read-group-type
request handler.  With the rearranged registered attributes, the host
fails to send the response to the client's initial service discovery
request.

I have pushed the attached commit to the develop branch.  If you want to
use the develop branch, you'll need to do the following:

1. Make the following change to your project.yml file:

FROM:

     repository.apache-mynewt-core:
         type: github
         vers: 0-latest
         user: apache
         repo: incubator-mynewt-core

TO:

     repository.apache-mynewt-core:
         type: github
         vers: 0-dev
         user: apache
         repo: incubator-mynewt-core

(change the "vers" field).

2. Upgrade your packages with "newt upgrade", e.g.,

     [ccollins@iori:~/tmp/myproj]$ newt upgrade
     apache-mynewt-core
     Would you like to upgrade repository apache-mynewt-core from 0.7.9-none to 
0.0.0-none ? [Yn] y

Thanks!
Chris



I've tried the patch, it's working fine. Thanks!

I'll continue playing with the BLE stack, what is your advise staying on 0.9 or moving to 0-dev?



--
Stephane D'Alu

Reply via email to