@krvarma, many thanks for the suggestion. I modified your code to output to an arduino serial and removed the 1000ms delay, but the delay remains ( still trying to work out why )
I’m really trying to find a way to make it so that if a beacon is set to advertise every 20ms, the BLE mini would pick each up and pass it to the serial to print (Im trying to get as much resolution on the change of distance of a beacon as possible )
I’m a newbie trying to hookup a BLE Mini with an Arduino Mega and attempting to listen to a Beacon Module Bluetooth 4.0 (CC2541). If you don’t mind, can you please share what modifications you did to the code to get it to work with Arduino? Thanks! Instead of displaying results on the screen, I am trying to simply have an LED light up for a particular set of beacons.
@raza, it should work by changing the Serial1 to Serial or SoftSerial. I have tried while working on this project. First I tried with Arduino and then converted to Spark Core.
@bravomikebravo, this as such will not work for Eddystone because the Advertisement Data is very different. We have to modify it to parse the Eddystone data. So by parsing the Eddystone Advertisement data, we can use this for your purpose.
@developer_bt, the code is for BLE Mini board and it uses HCI commands. I am not familiar with the BLE2 Click board and not sure it supports HCI commands. Even if it supports you have to change the code for this board.
@developer_bt, no, I didn’t solve that. It is kept aside for a long time. I am sure when I will be able to resume it since I am busy with other works. Sorry about that.