Re: BLE Questions

2016-11-28 Thread Christopher Collins
Argh... I messed up the call to ble_gatts_chr_updated(). I forgot to pass the characteristic handle to this function. The corrected code is below: /* Update characteristic value. */ gatt_svr_new_alert_val[0] = 10; gatt_svr_new_alert_val[1] = 20; gatt_svr_new_alert_val[2] = 30;

Re: BLE Questions

2016-11-28 Thread Christopher Collins
On Mon, Nov 28, 2016 at 04:33:23PM -0500, David G. Simmons wrote: > Thanks to both of you for hugely helpful answers! > > Now, the last bit ... > > Where is the value -- or the variable, more accurately -- associated > with a characteristic defined? So that I know which one to update. :-)

Re: BLE Questions

2016-11-28 Thread David G. Simmons
Thanks to both of you for hugely helpful answers! Now, the last bit ... Where is the value -- or the variable, more accurately -- associated with a characteristic defined? So that I know which one to update. :-) dg > On Nov 28, 2016, at 4:30 PM, Christopher Collins

Re: BLE Questions

2016-11-28 Thread Christopher Collins
Hi David, Mike wrote a good reply, but a few things that were said are based on an older version of the nimble stack. Thankfully, some parts have improved since 0.9.0. My response is below. On Mon, Nov 28, 2016 at 03:42:01PM -0500, David G. Simmons wrote: [...] > GATT_SVR_CHR_NEW_ALERT is a

Re: BLE Questions

2016-11-28 Thread Mike Ryan
On Mon, Nov 28, 2016 at 03:42:01PM -0500, David G. Simmons wrote: > It's my understanding from that code that the callback function for all the > characteristics is registered in the gatt_srv table, and that in e example > they all have the same callback function, namely

BLE Questions

2016-11-28 Thread David G. Simmons
Hi All, Hope all my American cohorts had a great Thanksgiving! I'm working on a BLE app for MyNewt, and have been going through the code and docs trying to figure out how a subscribed characteristic gets updated. I'm looking through the bleprph app code for hints. It's my understanding

Re: [BLE] Questions about BLE on Apache Mynewt

2016-02-19 Thread Sterling Hughes
Hi Quang, No problem, that's exciting! Documentation on Mynewt is located here: http://mynewt.incubator.apache.org/documentation/ It's good that you're working on the Nordic platform, we've spent a lot of time supporting that chip. We are currently in the middle of our first beta -- if

[BLE] Questions about BLE on Apache Mynewt

2016-02-18 Thread Huynh Minh Quang
Dear Sir/Madam, First, I see that Apache Mynewt is the excellent RTOS and I would like to use Apache Mynewt for my BLE module using Nordict NRF51822 IC (this already working with mbed contribution). So, I wonder where can I find the documentation, user manual, tool-chain, complier or something