diff --git a/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift b/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift index c3c4b3d..b1476bd 100644 --- a/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift +++ b/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift @@ -17,7 +17,7 @@ public actor IoTSimulatorCore { public static func addDevice( location: String, device: EdgeDeviceP, - success: sending @escaping (_ msg: Data) throws -> Void, + success: sending @escaping (_ msg: Data) async throws -> Void, failure: sending @escaping () -> Void ) throws { if let environment = IoTSimulatorCore.enviroments[location] {