Skip to content

Arduino Library #6

@benmoriz

Description

@benmoriz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions