ClaesClaes/Arduino-ESP32-BLE-OTA-iOS-SwiftUI - GitHub

Skip to content Dismiss alert {{ message }} / Arduino-ESP32-BLE-OTA-iOS-SwiftUI Public
  • Notifications You must be signed in to change notification settings
  • Fork 2
  • Star 21

Arduino example for iOS, swiftUI BLE OTA on a ESP32

License

MIT license 21 stars 2 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings
  • Code
  • Issues 1
  • Pull requests
  • Discussions
  • Actions
  • Projects
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options ClaesClaes/Arduino-ESP32-BLE-OTA-iOS-SwiftUI  mainBranchesTagsGo to fileCode

Folders and files

NameNameLast commit messageLast commit date

Latest commit

 

History

14 Commits
esp32_ble_otaesp32_ble_ota  
iOS_OTA_ESP32iOS_OTA_ESP32  
LICENSELICENSE  
README.mdREADME.md  
View all files

Repository files navigation

  • README
  • MIT license
Arduino-ESP32-BLE-OTA-iOS-SwiftUI

*** Please use the NEW (https://github.com/ClaesClaes/Arduino-ESP32-NimBLE-OTA-iOS-SwiftUI) and improved repository instead. The new version use NimBLE BLE stack for superior memory footprint. Stability issues has been resolved. The iOS app also contains more features ***

Arduino example for BLE OTA on a ESP32 using an iOS app

This is a demo on how to upload firmware (.bin file) from an iOS app to an ESP32.

The app will auto connect to the ESP32 when it discovers the BLE service UUID of the ESP32 BLE device. It will also re-connect in situation when the ESP32 BLE device comes out of range and later returns in range.

Flash the ESP32 device with the .ino file via Arduino IDE and run the App in Xcode (tested on 12.3 for minimum iOS 14.0) on a real device (iPhone, iPad. Does not work on a simulator as they lack physical Bluetooth).

After starting the app, press "send .bin to ESP32 over OTA" to start the OTA file transfer. Watch the "Upload progress percentage" going from 0 to 100%. Once the upload is done the ESP32 waits 1 second and thereafter restarts.

  • Ported to Arduino code and based on chegewara example for ESP-IDF: https://github.com/chegewara/esp32-OTA-over-BLE
  • Bluetooth class (BLEConnection) in BluetootheLE.swift inspired by: purpln https://github.com/purpln/bluetooth and Chris Hulbert http://www.splinter.com.au/2019/05/18/ios-swift-bluetooth-le/

About

Arduino example for iOS, swiftUI BLE OTA on a ESP32

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

21 stars

Watchers

3 watching

Forks

2 forks Report repository

Releases

No releases published

Packages

No packages published

Languages

  • Swift 81.0%
  • C++ 19.0%
You can’t perform that action at this time.

Tag » Arduino Ble Ota