Get MAC address of bluetooth low energy peripheral in iOS

CBPeripheral’s identifier property will serve your purpose, available from a still-unconnected device in CBCentralManager’s didDiscoverPeripheral delegate method: – (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI CBPeripheral *peripheral … NSUUID* serverId = [peripheral identifier]; I have a half dozen LE devices I’m experimenting with, including multiple sets of identical devices. I just confirmed that across … Read more

Bluetooth in react-native

Update (with disclaimer): Since I gave the original answer, things have changed. In my company (Polidea) since we realised there is no very good library for React Native for BT we developed and fully open-sourced (permissive licence) our own solution. It’s based on two RX-based Android and iOS native libraries and we wrote a common … Read more

Bluetooth sniffer – preferably mac osx

Apple publishes an application called PacketLogger. You can download it by going to https://developer.apple.com/download/more/?=for%20Xcode (or if you have Xcode installed, go to Xcode > Open Developer Tool > More developer tools), then loging in with your Apple developer account, search for Additional Tools and download the latest version (or if you have Xcode installed, download … Read more

Multiple bluetooth connection

I was searching a way to connect 4 devices with bluetooth and I found the following. http://groups.google.com/group/android-developers/browse_thread/thread/69d7810f6ef9bb7d I’m not sure that this is what you want. But in order to connect more than 2 devices using bluetooth you have to create a different UUID for each device you want to connect. Follow the link to … Read more

How to write to a file in .NET Core?

This code is the skeleton I was looking for when I posed the question. It uses only facilities available in .NET Core. var watcher = new BluetoothLEAdvertisementWatcher(); var logPath = System.IO.Path.GetTempFileName(); var logFile = System.IO.File.Create(logPath); var logWriter = new System.IO.StreamWriter(logFile); logWriter.WriteLine(“Log message”); logWriter.Dispose();

Transfer data between iOS and Android via Bluetooth?

This question has been asked many times on this site and the definitive answer is: NO, you can’t connect an Android phone to an iPhone over Bluetooth, and YES Apple has restrictions that prevent this. Some possible alternatives: Bonjour over WiFi, as you mentioned. However, I couldn’t find a comprehensive tutorial for it. Some internet … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)