Hi David,
Unfortunately, I can't help you as I'm not an expert in BT or C based programming but I hope someone can as we need all the community based expertise we can muster. As will be demonstrated in a minute when I post a question for you in your very cool sensor drivers post.
