(1) SeamBlue is a framework that enables seamless Bluetooth Low Energy (BLE) connection migration for unmodified IoT devices between multiple gateways. (2) It uses static program analysis to automatically identify the state variables needed to capture a snapshot of the BLE connection state, avoiding manual code inspection. (3) Upon a device moving out of range, the current gateway extracts the connection information, disseminates it to candidate gateways, and the new gateway can then recreate the connection state and continue serving the device without disrupting the connection.