Skip to content

leonardocavagnis/iOSArduinoBLE_iOSApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOSArduinoBLE iOS App

Swift Version SwiftUI Version Xcode Version

Description

This repository contains an iOS app called iOSArduinoBLE that enables scanning and connecting to a Bluetooth Low Energy (BLE) peripheral device that exposes a specific service in its advertising. The app consists of two main screens: Scan and Connect.

  • The "Scan" screen enables searching for and displaying available BLE devices in the surrounding area. Once the desired device is found, you can initiate a connection to it.
  • The "Connect" screen provides an interface to interact with the characteristics of the peripheral device. The app supports two types of characteristics:
    • Read and Notify characteristic: Allows reading data from the characteristic and receiving notifications when the data is updated.
    • Write characteristic: Enables sending data to the peripheral device.

The app is based on the CoreBluetooth framework in iOS for managing Bluetooth connectivity.

For detailed usage and functionality of the app, it is recommended to refer to the external article here that provides a comprehensive explanation.

BLE Characteristics

The app supports the following BLE characteristics:

Characteristic UUID Service
Read and Notify d888a9c3-f3cc-11ed-a05b-0242ac120003 d888a9c2-f3cc-11ed-a05b-0242ac120003
Write cd48409b-f3cc-11ed-a05b-0242ac120003 cd48409a-f3cc-11ed-a05b-0242ac120003

Please refer to the documentation for more details on how to interact with these characteristics.

Languages, Tools, and Environment

  • Swift 5.0
  • SwiftUI
  • Xcode 14.3

Device Compatibility

Please note that this app is designed to work exclusively on physical iOS devices (iPhones) and cannot run on simulators.

This limitation is due to the absence of Bluetooth support in simulators.

Authors

This project was developed by: