Skip to content

Instantly share code, notes, and snippets.

@tmohrbach
Last active July 16, 2020 04:27
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmohrbach/b549abd6818e2f0153a2489d0e35400e to your computer and use it in GitHub Desktop.
Save tmohrbach/b549abd6818e2f0153a2489d0e35400e to your computer and use it in GitHub Desktop.
SQL Filter for Service UUID Exposure Notification
SELECT
datetime(locations.timestamp, 'unixepoch', 'localtime') AS 'Timestamp',
devices.service_data AS 'R. Prox. Identifier',
locations.rssi AS 'RSSI',
locations.latitude AS 'Latitude',
locations.longitude AS 'Longitude'
FROM
devices
INNER JOIN locations ON devices.id = locations.device_id
WHERE
devices.service_data LIKE 'fd6f:%'
ORDER BY
locations.timestamp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment