View unanswered posts | View active topics It is currently Thu Oct 19, 2017 11:52 pm



Reply to topic  [ 1 post ] 
BLE112 - iPhone As Peripheral 
Author Message

Joined: Sat Oct 27, 2012 3:05 am
Posts: 1
I am having trouble discovering GATT attribute handles. I have my iPhone setup as a peripheral with some sample code provided by Apple. I have attached it for reference as well as my BGScript source code. I am able to connect successfully to the iPhone using the command:

call gap_connect_direct(bdaddr(0:6), 1, 80, 80, 500, 0)(result, connection_handle)

I have then been trying to get several find information functions to return a result of 0, with absolutely no success. I have tried all of the following commands with no success.

call attclient_find_information(connection_handle, $0000, $ffff)(connection, result)

I also tried this one with various different start and end values. Including the ones that I am able to see with a scanner I have.

call attclient_read_by_handle(connection_handle, $1)(connection, result)

I tried this with all the handles I was able to see with my scanner.

Any ideas? I am pretty new to all of this so I apologize if I am missing something simple here.


Attachments:
BTLE_Transfer_Draft.zip [144.77 KiB]
Downloaded 3209 times
Mon Nov 05, 2012 7:17 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.