Low Energy Versions 4.x and later are generally referred to as Bluetooth LE, but also include Bluetooth Classic. 4.xҎ߱ͷόʔδϣϯҰൠʹBluetooth LEͱݺΕΔ͕ɺBluetooth Classicؚ·Ε͍ͯΔɻ
Human Interface Device Profile Serial Port Profile Bluetooth LE ͕ग़Δલ… There were several profiles, each requiring customized implementation ͍͔ͭ͘ͷϓϩϑΝΠϧ͕͋Γɺن֨͝ͱʹݸผʹ࣮͕ඞཁͩͬͨɻ
all Bluetooth LE uses GATT. ͯ͢ͷBluetooth LE͕GATTΛ༻͍ͯ͠ΔΘ͚Ͱͳ͍ɻ Bluetooth LE ͕ग़͔ͯΒ… GATT has unified profiles and made implementation easier. GATTʹن͕֨౷Ұ͞Εͯɺ؆୯ʹͳͬͨɻ
acting as a ‘Peripheral’ ϖϦϑΣϥϧͱͯ͠ಈ࡞͢ΔσόΠεʹؔ࿈͢ΔΠϕϯτ Λॲཧ͢ΔͨΊͷϓϩτίϧ Peripheral (Child) ϖϦϑΣϥϧ ηϯτϥϧ Central (Parent) CBCentralManagerDelegate Protocols for handling events related to devices acting as a ‘Central’ ηϯτϥϧͱͯ͠ಈ࡞͢ΔσόΠεʹؔ࿈͢ΔΠϕϯτ Λॲཧ͢ΔͨΊͷϓϩτίϧ
packet packet ηϯτϥϧͷपғʹ͋Δͯ͢ͷBluetooth LEσόΠε͕ݕग़͞ΕΔͷͰɺඞཁͳσόΠε͚ͩΛ୳͢ɻ It detects all Bluetooth LE devices around Central, so it only looks for the ones it needs.