![arduino wifi vs bluetooth iphone 6 arduino wifi vs bluetooth iphone 6](https://images.squarespace-cdn.com/content/v1/59b037304c0dbfb092fbe894/1570653775178-D0KRLNZ65T0Q7Y6GU79G/ke17ZwdGBToddI8pDm48kGcfWwEITi7f49-WVrE2HdUUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYy7Mythp_T-mtop-vrsUOmeInPi9iDjx9w8K4ZfjXt2duvYSA7AUfZiWqyRPKl0jNWL8T9xSx1E6vlLHj2B1lCZbSexTd1-frD7527z4SM9QQ/lora_ebyte_arduino_915MHz_main_blog_mini.jpg)
Services and characteristics are defined in the sketch here: BLEService ledService("19B10010-E8F2-537E-4F6C-D104768A1214") // create service These are like the different sections in the newspaper. Each service, in turn, can have multiple characteristics. Just as the New York Times prints both the Times and The Boston Globe, the Arduino 101 can have multiple services. Readers or Central Devices like your phone can subscribe to the news.
![arduino wifi vs bluetooth iphone 6 arduino wifi vs bluetooth iphone 6](https://wonderfulengineering.com/wp-content/uploads/2018/07/Best-Bluetooth-Modules-For-Arduino-1.jpg)
The Arduino 101 prints 'news', called a service, every now and then. You can think of your Arduino 101, or any BLE Peripheral, as a newspaper publisher, say, the New York Times. set the UUID for the service this peripheral advertises:Ä«tAdvertisedServiceUuid(ledService.uuid()) The profile is created within the setup on lines 25-28 of the sketch: // set the local name peripheral advertises All this data together is called the GAP, or General Advertising Profile. UUIDs are the randomly generated 128-bit characters that identify a unique Bluetooth service. You can also see the service UUIDs and characteristic UUIDs (in this case they're the same). Once you're connected, you can see the advertisement data, including its Local Name (ButtonLED gets cut short to ButtonLE since the General Advertising Profile uses the Shortened Local Name, which only allows 8 characters).