CoreBluetooth로 아두이노 불 켜기
·
SwiftUI
Swift 코드 struct ContentView: View { @Environment(Bluetooth.self) var bluetooth func scheduleAppRefresh() { let request = BGAppRefreshTaskRequest(identifier: "BluetoothAlert.BluetoothAlert") request.earliestBeginDate = Calendar.current.date(byAdding: .second, value: 5, to: Date()) do { try BGTaskScheduler.shared.submit(request) print("Backg..
ytw_developer
'swiftui 아두이노' 태그의 글 목록