The Bluetooth SIG has a new Developer Study Guide by Martin Woolley showing how to create a Bluetooth gateway. Gateways are the bridge between Bluetooth devices and the Internet.
The developer study guide explains GAP, GATT, broadcasting devices and develops an architecture for capturing Bluetooth data:
It’s implemented using Python on a Raspberry Pi 4:
The guide has a section on Buy vs Build where it’s explained that, depending on your skills and budget, you might consider buying a commercial gateway.
Raspberry Pi based solutions aren’t always reliable in the long term because the micro SD card eventually fails. Most gateways also send (push) data to your server rather than an application having to query (pull) the gateway as is the case with the example in the study guide.
Beacon Proximity and Sensing for the Internet of Things (IoT)