Re: Adding service to bleprph

2016-06-01 Thread Stephane D'Alu
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

Re: Adding service to bleprph

2016-06-01 Thread Christopher Collins
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

Re: GDB scripts

2016-06-01 Thread will sanfilippo
I think having a gdbscript or scripts is an excellent idea but I dont think I would put them in libs/util. I dont like saying that without offering an alternative… but I just did :-) > On Jun 1, 2016, at 10:25 AM, Christopher Collins wrote: > > On Wed, Jun 01, 2016 at

Re: GDB scripts

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 10:04:05AM -0700, Vipul Rahane wrote: > Hello, > > While debugging a bunch of things, I felt the need for a few gdb scripts to > print out the data structures that we would use regularly. I was thinking of > creating a common gdb script which would contain different

GDB scripts

2016-06-01 Thread Vipul Rahane
Hello, While debugging a bunch of things, I felt the need for a few gdb scripts to print out the data structures that we would use regularly. I was thinking of creating a common gdb script which would contain different functions. This could reside in "libs/util" since we do not have a “tools"

Re: Enabling the Nordic HAL gpio external IRQ detection

2016-06-01 Thread Sterling Hughes
Hi Wayne, I’m working on fleshing out the HAL for Nordic chips as we speak, but going slowly. If you’d like to make the changes, I’d make sure to merge anything you did into my work, and we’d appreciate the contribution. If you’d like me to make them, I can reorg some stuff and make sure

Re: Triggering GATT Notification's

2016-06-01 Thread Christopher Collins
On Wed, Jun 01, 2016 at 07:04:02AM +0100, Wayne Keenan wrote: > Because I'm creating a 'ble_gatt_svc_def' at runtime these are the steps > I'm having todo to be able to keep hold of the characteristic handle in > order to be able to call 'ble_gatts_chr_updated(handle)' to send the > notification

Re: Enabling the Nordic HAL gpio external IRQ detection

2016-06-01 Thread will sanfilippo
It is on our radar to port all the current HAL to the nordic chip and this would include generating an interrupt on a gpio level change. Not quite sure when that will occur but it near the top of the list to do. > On Jun 1, 2016, at 1:24 AM, Wayne Keenan wrote: > >

Re: bletiny and bleprph

2016-06-01 Thread Stephane D'Alu
On 05/31/2016 11:18 PM, chris collins wrote: Hi Stephane, It is not every day that you see a negative overflow :). What version of gcc are you using? It's 4.8.4 20141219 (release) (4.8.4-1+11-1), on debian $ arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=arm-none-eabi-gcc

Re: Triggering GATT Notification's

2016-06-01 Thread Wayne Keenan
Hiya Chris, On 31 May 2016 at 16:36, Christopher Collins wrote: > > > There are a few ways to send notifications: > > 1. The stack sends them automatically to subscribed clients when a >characteristic value changes. The client subscribes to notifications >(or