What UUID does Bluefruit::Scanner::filterUuid() look for?

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jaholmes
 
Posts: 3
Joined: Mon Nov 07, 2016 7:15 pm

What UUID does Bluefruit::Scanner::filterUuid() look for?

Post by jaholmes »

Advertising a BLEService with 128-bit UUID x on one Feather device and scanning/filtering for it on another doesn't appear to work, so pretty sure I'm not understanding something here. What UUID is filterUuid() actually looking for, and how, on the service side, do I specify it?

User avatar
jaholmes
 
Posts: 3
Joined: Mon Nov 07, 2016 7:15 pm

Re: What UUID does Bluefruit::Scanner::filterUuid() look for?

Post by jaholmes »

I suppose I should explain "doesn't work." To be clearer, I'm running the following BLEScanner sample:
https://learn.adafruit.com/bluefruit-nr ... blescanner

I can see my service advertised like so in the Arduino serial monitor:

Code: Select all

[ADV    15655] Packet received from F4:2F:AE:19:3F:D4
       PAYLOAD 31 bytes
               02-01-06-02-0A-00-11-07-54-14-BE-50-53-EC-F2-B7-E4-4B-85-78-D8-7B-71-53-06-08-53-6C-6F-74-44
          RSSI -61 dBm
      ADV TYPE Connectable undirected
    SHORT NAME SlotD
  TX PWR LEVEL 0
  128-Bit UUID T⸮PS⸮⸮⸮K⸮x⸮{qS53717BD8-7885-4BE4-B7F2-EC5350BE1454
(The garbage characters before the UUID are printed because of a bug in the sample's printUuid128List() function. There are two format specifiers in the printf() call, but only one has an argument provided for it.)

My service's UUID is 53717BD8-7885-4BE4-B7F2-EC5350BE1454. I supposed that adding a filterUuid() call to the sample with this UUID would limit the scan results to my own service, however the scan then returns no results. Again, pretty sure I'm just misunderstanding what UUID this filter operates on. A nudge in the right direction would be very much appreciated!

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”