none
Scanning for Bluetooth Low Energy Beacons using VBA RRS feed

  • Question

  • Would it be possible to scan for BLE devices such as iBeacons, AltBeacons etc. using VBA?

    Is there a function that scans for a few seconds and returns the data into a variable?

    I would like to create some code that monitors for certain bluetooth beacons, and records the times that they come in range.

    Similar to the following python code

    <CODE>

    sock = bluez.hci_open_dev(dev_id)

    blescan.hci_le_set_scan_parameters(sock)

    blescan.hci_enable_le_scan(sock)

    returnedList = blescan.parse_events(sock, 1)

    </CODE>

    Thanks


    Thursday, November 26, 2015 6:11 PM

All replies

  • You can use use Windows Sockets to communicate with Bluetooth.  You can program this with win32 commands using ws2_32.dll.  You can call win32 commands from VBA.  I have used this a long time ago to do some network communication but never for bluetooth.  You can Google/Bing ws2_32.dll and VBA or ws2_32.dll and bluetooth. 
    Friday, November 27, 2015 4:30 PM