I'm currently learning about using BLE with Arduino and iOS. From what I understand (correct me if I'm mistaken), each type of BT device has a UUID. I'm using a HC-06 module connected to my Arduino. How do I find out what the UUID of a HC-06 is? I've been looking through data sheets to no avail.
2 Answers
In Android, I used this UUID to connect to HC-06,
socket = device.createInsecureRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"));
inputStream = socket.getInputStream();
outputStream = socket.getOutputStream();
You can use this UUID in your Android code, But over iOS, I think the Bluetooth is really a completely different hardware specs.
Hope I helped
-
Android use the SPP protocol as the HC-05 and HC-06, but it seems iOS don't. So comunicating with an iOS machine would be difficult.– PeterNov 19, 2017 at 22:03
Well guess what, HC-06 is not low energy so no iOS device will ever see that module despite whatever uUid you have, so go and get a bluetooth 4.0 aka BLE module