pkarashchenko opened a new issue, #1551:
URL: https://github.com/apache/mynewt-nimble/issues/1551
I tried to run `blecent` app on Linux. To do this I copied corresponding
source files from `apps/blecent` to `porting/examples/linux` and adapted
`Makefile` and `blecent` code to build and run. I also added
`printf("event->disc.event_type %d\n", event->disc.event_type);` print to `case
BLE_GAP_EVENT_DISC:` in `blecent_gap_event`. After I run the program I'
observing next output
```
$ sudo ./nimble-linux
GAP procedure initiated: discovery; own_addr_type=0 filter_policy=0
passive=1 limited=0 filter_duplicates=1 duration=forever
event->disc.event_type 128
flags=0x06
uuids128(complete)=d846fc4a-84cc-4c56-9786-187b0725751d
appearance=0x0000
event->disc.event_type 18
uuids16(complete)=0xfef3
```
but `event_type` is stated to carry
```
/** Advertising PDU type. Can be one of following constants:
* - BLE_HCI_ADV_RPT_EVTYPE_ADV_IND
* - BLE_HCI_ADV_RPT_EVTYPE_DIR_IND
* - BLE_HCI_ADV_RPT_EVTYPE_SCAN_IND
* - BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND
* - BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP
*/
uint8_t event_type;
```
values from `0` to `4`.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]