Playground Bluetooth

RSS for tag

Display and manage connections to Bluetooth peripherals in Swift Playgrounds using Playground Bluetooth.

Posts under Playground Bluetooth tag

34 Posts

Post

Replies

Boosts

Views

Activity

PlaygroundBluetooth with SwiftUI
I'm trying to use Bluetooth in a SwiftUI on Playgrounds. I have a running sample using UIKit, but with SwiftUI, I ran into an interesting problem. I startet with the empty App-Sample and defined the ContentView like this: import SwiftUI struct ContentView: View {     var body: some View {         VStack {             Text("Hello, world!")             Button {                 print("hello")             } label: {                 Text("press me")             }.buttonStyle(.bordered)         }     } } The MyApp-code looks like this import SwiftUI import PlaygroundSupport import PlaygroundBluetooth @main struct MyApp: App {     //private var centralManager: PlaygroundBluetoothCentralManager?     var body: some Scene {         WindowGroup {             ContentView()         }     } } With this implementation, I can click on the Button and it prints the message. But if I uncomment the private var centralManager, the App does not run anymore. Any ideas? Thanks in advance Rainer
4
0
1.3k
Jan ’23
Communicating between server and bluetooth device
I want to use my iPhone as an intermediary that sends signals between (to and from) a bluetooth-equipped device and a server. That's all I need, just a way of communicating a server and bluetooth-equipped device via my iPhone. Server -> iPhone -> Bluetooth Device and Server <- iPhone <- Bluetooth Device Both directions. I have very little iOS experience but this seems like a simple enough use case that maybe I can do it. Any suggestions from the community about how to implement it or ways to already do this that don't require much additional coding on my part? I have little to no iOS coding experience.
1
0
855
Aug ’22
Receive Live camera flow with Bluetooth from an iPhone to an other one
First, thanks for your time ! I'm trying to code my own app, she had to link 2 iPhone with Bluetooth. The first iPhone had to send live camera flow to the other with Bluetooth link when the app is running in sender mode. The second iPhone had to show the live, and offer the possibility to take instant photos when the app is running in receiver mode. I don't want to install an app because I want to include other special actions in the future. First question : May I use swift or C ? If you need more details, don't hesitate! Arthur
0
0
1.2k
May ’22
BT Issue on iPhone 13 Pro 256 GB
Hi all, I'm facing issue with BT on m iPhone 13 Pro 265 GB iOS 15.4. when I'm pairing with BT headphones or car system all is fine but when I'm pairing with units from DARKGLASS ELECTRONICS models ADAM and Photon (those are bass guitar efects with BT) I'm heaving audio issues like stuttering and humming. Additionaly sometimes it can't even connect to unit. Those issues are not occuting when I'm using my old iPhone 8 (no audio or pairing issues). I was trying below solutions: Updating to latest iOS. Turning off BT and restarting device. Several re-pairing and forgoting of device. Reseting of iPhone. Reseting network options. Regards, Tomasz
0
0
656
Mar ’22
iBeacons broadcasting on background for long time
Hi, We have an app that broadcast UUIDs as beacons to the Suntech vehicle tracker device in the foreground and background. This app broadcast UUIDs to vehicle tracker devices when the app is in range of the device, and when the application is away from the device then it will send alerts to users. But this is working properly when the app is in the foreground. And when the user puts the application in the background then broadcasting stops and UUIDs format is also changed. So can you guide us, on how we can broadcast in the background for a long time and when the app is killed?
1
0
1.5k
Jan ’22
Background ble
I want to send encrypted data from ble (as central) to another device (as peripheral). Now when app is open everything is all good, but what to do if app is in background? Do I have to buy smaller version of advertising id from BLE SIG? OR Is there any way I can send data in background? Or Is there any unique characteristics or services other than BLE ADDRESS that iPhone always advertises when iOS Bluetooth is turned on, so that I can check on that condition and allow entry to user (as application is for smart door lock.)
0
0
1k
Jan ’22
ios15 iPhone 13 mini not connecting to car bluetooth properly
I had iPhone 6 iOS 12.xx - it worked seamlessly with Vauxhall vector 06 car stereo bluetooth. Upgraded to iPhone 13 iOS 15. It will connect a call to the car bluetooth, but now won't hang up. The phone hangs up, but the car stereo/bluetooth line stays as open as if the line is connected still. Only fix so far to pull stereo fuse from the car each time! Apparently becoming a known issue with Apple at the moment
3
0
959
Nov ’21
ios 14.6 Bluetooth disconnecting from Airpods and Beats Pro true Wireless
I have an iphone 12 pro. Since update 14.4, Bluetooth has been disconnecting randomly from my Airpods. Then when I updated to 14.6, it started happening more frequently. I thought it was my Airpods, so I bought a pair of brand new pair of Beats Pro Wireless (true wireless). It's still happening and still the most irritating thing about my apple products right now. Halp.
1
0
906
Aug ’21
PlaygroundBluetooth with SwiftUI
I'm trying to use Bluetooth in a SwiftUI on Playgrounds. I have a running sample using UIKit, but with SwiftUI, I ran into an interesting problem. I startet with the empty App-Sample and defined the ContentView like this: import SwiftUI struct ContentView: View {     var body: some View {         VStack {             Text("Hello, world!")             Button {                 print("hello")             } label: {                 Text("press me")             }.buttonStyle(.bordered)         }     } } The MyApp-code looks like this import SwiftUI import PlaygroundSupport import PlaygroundBluetooth @main struct MyApp: App {     //private var centralManager: PlaygroundBluetoothCentralManager?     var body: some Scene {         WindowGroup {             ContentView()         }     } } With this implementation, I can click on the Button and it prints the message. But if I uncomment the private var centralManager, the App does not run anymore. Any ideas? Thanks in advance Rainer
Replies
4
Boosts
0
Views
1.3k
Activity
Jan ’23
How to connect Bluetooth Classic device to iOS with Flutter
I want to connect to the OBDII device (Bluetooth classic) I have. I am writing my application with Flutter, but I cannot connect to this device on the iOS side, I cannot see or scan. Is there any way I can do this?
Replies
0
Boosts
0
Views
1.5k
Activity
Aug ’22
Communicating between server and bluetooth device
I want to use my iPhone as an intermediary that sends signals between (to and from) a bluetooth-equipped device and a server. That's all I need, just a way of communicating a server and bluetooth-equipped device via my iPhone. Server -> iPhone -> Bluetooth Device and Server <- iPhone <- Bluetooth Device Both directions. I have very little iOS experience but this seems like a simple enough use case that maybe I can do it. Any suggestions from the community about how to implement it or ways to already do this that don't require much additional coding on my part? I have little to no iOS coding experience.
Replies
1
Boosts
0
Views
855
Activity
Aug ’22
Try to Connect Bluetooth Device
Device Info:- Bluetooth version: - 4.0 Communication Protocol: UART 3.3V TTL Device is Weight Scale We already tried using their mac address .but as per our knowledge we are unable to do that using core Bluetooth. we are attaching Bluetooth device service and characteristics here. Are we able to connect this Bluetooth Device using Core Bluetooth? * *
Replies
3
Boosts
0
Views
1.5k
Activity
Jun ’22
Receive Live camera flow with Bluetooth from an iPhone to an other one
First, thanks for your time ! I'm trying to code my own app, she had to link 2 iPhone with Bluetooth. The first iPhone had to send live camera flow to the other with Bluetooth link when the app is running in sender mode. The second iPhone had to show the live, and offer the possibility to take instant photos when the app is running in receiver mode. I don't want to install an app because I want to include other special actions in the future. First question : May I use swift or C ? If you need more details, don't hesitate! Arthur
Replies
0
Boosts
0
Views
1.2k
Activity
May ’22
How do I develop an iOS app that lets me send text to a arduino?
I have seen no good tutorials for actually making Bluetooth apps on playgrounds. I’ve seen tutorials for mac but I only have an iPad. Im really lost any help would be much appreciated. I don’t even know how to structure an app in playgrounds, it’s different then in mac.
Replies
0
Boosts
0
Views
819
Activity
Mar ’22
BT Issue on iPhone 13 Pro 256 GB
Hi all, I'm facing issue with BT on m iPhone 13 Pro 265 GB iOS 15.4. when I'm pairing with BT headphones or car system all is fine but when I'm pairing with units from DARKGLASS ELECTRONICS models ADAM and Photon (those are bass guitar efects with BT) I'm heaving audio issues like stuttering and humming. Additionaly sometimes it can't even connect to unit. Those issues are not occuting when I'm using my old iPhone 8 (no audio or pairing issues). I was trying below solutions: Updating to latest iOS. Turning off BT and restarting device. Several re-pairing and forgoting of device. Reseting of iPhone. Reseting network options. Regards, Tomasz
Replies
0
Boosts
0
Views
656
Activity
Mar ’22
Announce messages not working
I have announce messages for my airpods pro's on but whenever i get a message it just gets quieter as if its going to announce it but then it doesn't say anything. does anyone know what the problem could be?
Replies
0
Boosts
0
Views
665
Activity
Feb ’22
iBeacons broadcasting on background for long time
Hi, We have an app that broadcast UUIDs as beacons to the Suntech vehicle tracker device in the foreground and background. This app broadcast UUIDs to vehicle tracker devices when the app is in range of the device, and when the application is away from the device then it will send alerts to users. But this is working properly when the app is in the foreground. And when the user puts the application in the background then broadcasting stops and UUIDs format is also changed. So can you guide us, on how we can broadcast in the background for a long time and when the app is killed?
Replies
1
Boosts
0
Views
1.5k
Activity
Jan ’22
Background ble
I want to send encrypted data from ble (as central) to another device (as peripheral). Now when app is open everything is all good, but what to do if app is in background? Do I have to buy smaller version of advertising id from BLE SIG? OR Is there any way I can send data in background? Or Is there any unique characteristics or services other than BLE ADDRESS that iPhone always advertises when iOS Bluetooth is turned on, so that I can check on that condition and allow entry to user (as application is for smart door lock.)
Replies
0
Boosts
0
Views
1k
Activity
Jan ’22
ios15 iPhone 13 mini not connecting to car bluetooth properly
I had iPhone 6 iOS 12.xx - it worked seamlessly with Vauxhall vector 06 car stereo bluetooth. Upgraded to iPhone 13 iOS 15. It will connect a call to the car bluetooth, but now won't hang up. The phone hangs up, but the car stereo/bluetooth line stays as open as if the line is connected still. Only fix so far to pull stereo fuse from the car each time! Apparently becoming a known issue with Apple at the moment
Replies
3
Boosts
0
Views
959
Activity
Nov ’21
connecting issue with BLE
I am building a flutter project that using a Bluetooth Reactive BLE dependency but I am facing a error while connecting with BLE device. Errors are like: Command PhaseScriptExecution failed with a nonzero exit code Flutter/Flutter.h file not found
Replies
0
Boosts
0
Views
784
Activity
Oct ’21
How to Change iBeacon Advertising Interval?
I'm developing a ibeacon app.  I want to change the ibeacon advertising interval. I want to slow down the ibeacon advertising interval.  But I couldn't find a way.  I am developing with Swift.  Please help me. I need your help.  Will it be impossible to change it?
Replies
1
Boosts
0
Views
865
Activity
Aug ’21
ios 14.6 Bluetooth disconnecting from Airpods and Beats Pro true Wireless
I have an iphone 12 pro. Since update 14.4, Bluetooth has been disconnecting randomly from my Airpods. Then when I updated to 14.6, it started happening more frequently. I thought it was my Airpods, so I bought a pair of brand new pair of Beats Pro Wireless (true wireless). It's still happening and still the most irritating thing about my apple products right now. Halp.
Replies
1
Boosts
0
Views
906
Activity
Aug ’21