Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Library #6

Open
benmoriz opened this issue Feb 10, 2016 · 0 comments
Open

Arduino Library #6

benmoriz opened this issue Feb 10, 2016 · 0 comments

Comments

@benmoriz
Copy link

Hi
I am trying to write my own HCI library for an Arduino in c++. I am familiar with writing header and cpp file. I can see at TI BLE Vendor Specific Guide the Commands its OPCode, Command parameters and its values and octets and return parameters.
I just want to know how to implement specific command.
Like....

GAP_DeviceInit(profilerole, maxScanResponses, IRK, CSRK, signCounter)
opcode is 0xFE00 for this command whereas, 0x08, 0x03, 0x00, 0x00, 0x00 - 0x01 values are suitable for the command parameters respectively. The octets are 1, 1, 16, 16, 4 for command parameters respectively.
And return parameter has 1 octet and 2 values for success 0x00 and 0x02 for invalid parameter.

Looking at your python program I am more confused in starting to write library. If you could show me just to write one command then I would write rest in c++.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant