What is the purpose of the ble_advdata_encode() method?
I see it has been used in the beacon example, but some other examples don't use it.
In both case, the advertising data seems to be sent out just fine.
I'm using sdk17 on nrf52832
Regards,
Hari
What is the purpose of the ble_advdata_encode() method?
I see it has been used in the beacon example, but some other examples don't use it.
In both case, the advertising data seems to be sent out just fine.
I'm using sdk17 on nrf52832
Regards,
Hari
Thanks for NOT sharing <rolleyes>
Thanks for NOT sharing <rolleyes>
Keith,
So my findings.
1. The ble_advdata_encode() method? basically takes in information like device name, manufacturer data etc and packs it into a byte array payload. So it turns a struct datatype into a properly formatted byte array to be sent out over the air.
2. All examples actually use this method, I was wrong. Some call it right from main.c and others call it from a different file.
cheers,
H