i am not able display uuid, major,minor values and company identifier(so that we can change the beacon identification to ibeacon) using Ble_app_proximity example. please say the specific steps to display these.
i am not able display uuid, major,minor values and company identifier(so that we can change the beacon identification to ibeacon) using Ble_app_proximity example. please say the specific steps to display these.
Did you debug to check if there are error codes reported? This is normally the case when your device is not advertising.
You should modify the following defines to match your beacon UUID, minor, major, and company ID:
#define APP_COMPANY_IDENTIFIER 0x004C #define APP_MAJOR_VALUE 0x00, 0x02 #define APP_MINOR_VALUE 0x00, 0x02 #define APP_BEACON_UUID 0x01, 0x12, 0x23, 0x34, \ 0x45, 0x56, 0x67, 0x78, \ 0x89, 0x9a, 0xab, 0xbc, \ 0xcd, 0xde, 0xef, 0xf0
Also make sure that USE_UICR_FOR_MAJ_MIN_VALUES is not defined in your project. Are you able to get the ble_app_beacon example to advertise your desired beacon data?
yes i am able advertise ble_app_beacon example by these values
but i need battery level also....the above beacon is not mine...i gave a sample one that in which my beacon should also advertise same like the sample one above
I have made an example that combine ble_app_beacon advertising data and is connectable, with proximity services.
I have not modified the beacon values, you should be able to fix this yourself. The example is also not thoroughly tested, only checked that it advertise and can be connected.
Thank you very much @Jørgen Holmefjord
Thank you very much @Jørgen Holmefjord
@Jørgen Holmefjord why i am getting my battery level always as 100%
Are you powering the board from battery? The supply voltage needs to fall below 2.73 V before you get battery level below 100%.
yes after falling below 2.73V also it is showing 100%
And by the way my beacon should advertise as beacon in the above picture....so for that services what should i need to make changes in the ble_app_proximity_beacon example made by you
The example will only sample battery voltage every 120 seconds. I tested the example and confirmed that lower values are reported when running off battery.
You can change the interval for sampling on line 101 of main.c in my example:
#define BATTERY_LEVEL_MEAS_INTERVAL APP_TIMER_TICKS(120000) /**< Battery level measurement interval (ticks). This value corresponds to 120 seconds. */