Device name of a Bluetooth device in Xcode - objective-c

Can i get the name of an connected Bluetooth device on the iPad in my application developed in Xcode ? is this possible ? and how do you do this ?

You can find a tutorial here:
http://www.touchthatfruit.com/ios-bluetooth-development-tutorial-using-game
And some information here:
Bluetooth Apple Documentation

Related

Core bluetooth in WatchKit in apple watch?

I want my watch app to be identified by my paired iPhone.I am using CoreBluetooth Framework to implement this. I am transmitting bluetooth signals from my watch app and trying to receive the signal in my iPhone app. I am using the same concept as apple has shown in its sample code (https://developer.apple.com/library/ios/samplecode/BTLE_Transfer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40012927) , the only difference is that my transmitter is the watch app.
Issue
I am unable to detect watch app in my iPhone. I have made sure that all of my hardwares are configured properly and I am configuring the Core bluetooth delegate methods properly. I also suspect if this method will be feasible with iPhone and apple watch.
All suggestions are appreciated. Thanks in advance
This is not possible because your WatchKit app runs as an extension on your iPhone and therefore all Core Bluetooth bluetooth signals are sent from the iPhone itself to itself.
Access to Core Bluetooth on Apple Watch lets your apps bypass the phone and connect directly with the Bluetooth in Apple Watch. Access Core Bluetooth to connect directly with accessories. And with Apple Watch Series 3, your apps can take advantage of built-in cellular and altimeter capabilities.
Please note, since watchOS 6 it's possible to use CoreBluetooth on watchOS.
Check for more informations this link "Creating Independent watchOS Apps"
Be aware there are still some limitations using CoreBluetooth in watchOS for example:
The minimum connection interval is 30ms instead of 15ms (for iOS devices).
The Apple watch can only operate as a central device.
The Apple watch can only be connected to two peripherals at one Time
The peripheral gets disconnected when the app goes into the background.
Maybe this will change when watchOS 7 is out.

Any Simulatore available for BLE devices

Is there any BLE simulator available ?
Apart from that also want to know how can I send commands from BLE device to iOS and wake my iOS app if iPhone is already paired with the iOS
Thanks in advance :)

Connect IOS device to Xcode

This could be a noob question, but as a new ios "developer" I want to know how to connect my ios device to xcode?
I Need to find out how my new app looks on a device, and if it works!
Do I need to register my device on the apple dev programm? Or I could connect any device?
Sorry if this is a answered question here.
You need to register the device to apple developer portal (you must be a registered, paid developer to test on a real device). And after that connect the device, open xcode organizer and set the device as developer device (so you can see logs while running your app on it). More info can be found here:
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html
To connect an iDevice you have to be enrolled in Apple's Developer Program. You can then register your iDevice on the dev. portal and will be able to connect it via the Xcode Organizer to your IDE.
You can then select this device on the top left side of your Xcode project to run your build on this device.

need help for bluetooth framework on mac osx

i'm an iOs developer and I actually need to make a mac application that use bluetooth framework to connect to another device (not iOS device).
I'm actually showing a modal view showing the connected bluetooth device with IOBluetoothDeviceSelectorController and I get the user choice with [modal getResults] but I don't know how to initiate the connection with the selected device and I can't find a simple way to do it on the mac dev library.
is anyone know a tutorial or sample code that could help me advance in my project?
linkos
The Mac Developer Library has two sample Bluetooth projects; connecting to a health thermometer and connecting to a heart rate monitor. There is also video available of the Advanced Core Bluetooth WWDC 2012 session.

Connect Mac with iPhone using bonjour

I am trying to make a connection using bonjour and bluetooth between my mac and my iPhone.
I´ve been reading a bit and from these sites I have learned that I cannot use NSNetService as I did on my first attempt.
Bonjour over bluetooth WITHOUT Gamekit ?
Bonjour over Bluetooth on iOS 5.0
So I have modded the DNSSDObjects sample code to use the kDNSServiceInterfaceIndexP2P flag instead.
DNSSDObjects
But I still cant connect my iPhone with my mac. If I change the flag back to kDNSServiceInterfaceIndexAny I can make a connection over Wifi (lan). But no luck using kDNSServiceInterfaceIndexP2P or kDNSServiceFlagsIncludeP2P using bluetooth.
Is there something missing, is it even possible to connect OSX and iOS using bonjour and bluetooth?