2

If I want to connect my peripheral (Arduino) to my central (Iphone) do I have to structure the data in the arduino as a services and characteristics? I have seen some projects where an iphone is connected to an arduino but iphones scan for UUID's and services so I am not sure how they implemented the code on the arduino side?

user2076774
  • 405
  • 1
  • 8
  • 21

2 Answers2

1

As a BLE peripheral, your Arduino will advertise one or more services (with characteristics) that you specify.

You mention in a comment that you are using a RedBearLabs BLE shield. You can use the RedBearLab library (download from http://redbearlab.com/bleshield/) to set up your service in your Arduino sketch. For an example, see Getting Going With iOS and Arduino Using Bluetooth LE.

Chris Miles
  • 7,346
  • 2
  • 37
  • 34
0

Every hardware provide have there own specification . Some provider will give you in built service and characteristic (readable and writable) . If it is BLE dongle then there may be some services implemented to in . Better you can use core ble application like LightBlue and try to explore services and characteristic in that dongle . Other wise you can contact their customer service , they will let you know about that dongle .

V-Xtreme
  • 7,230
  • 9
  • 39
  • 79