 }
 
 #endif
-*/

    }
    
    // MARK: - Private Methods
    
    private func main() {
        

                }
            }
                
            catch { log("Error waiting for new connection: \(error)") }
        }
        
        log("Stopped GATT Server")
    }
    
    private func newConnectionID() -> UInt {
        lastConnectionID += 1
        return lastConnectionID
    }
    
    private func disconnect(_ connection: UInt, error: Error) async {
        // remove from peripheral, release and close socket
        self.connections[connection] = nil
        // enable LE advertising
        do { try await hostController.enableLowEnergyAdvertising() }
        catch HCIError.commandDisallowed { /* ignore */ }
        catch { log("Could not enable advertising. \(error)") }
    }
}

