robkers1993 opened a new issue #687: Return code from ble_hs_hci_cmd_tx is HEX207, while it should be a BLE_HS_E... type of error URL: https://github.com/apache/mynewt-nimble/issues/687 Hi all! Im porting the driver part of the Nimble stack to my own platform. The whole thing is work in progress and i'm trying to run the stack. The problem that I run into right now, is running the Advertisement example where Now, in the call ble_hs_hci_cmd_tx(..) at line 338 "rc = ack.bha_status". This value is set to DEC519, which translates to 0x207. However, if I look at the definition of the ACK type, i see in the comment that I have to interpret this error as /* A BLE_HS_E<...> error; NOT a naked HCI code. */ Now, looking at https://mynewt.apache.org/latest/network/docs/ble_hs/ble_hs_return_codes.html , there is no code BLE_HS_E... with the value 0x207. For sure, a normal HCI can take that value, but it should not be interpreted that way. Q1: How should I terpret this rc? As a HS or a HCI rc? Q2: Why is the rc set to a value it could in theory not take? The RC is incompatible with ack.bha_status. Cheers, Rob
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services