SaaSHub helps you find the best software and product alternatives Learn more →
Top 11 Swift bluetooth-low-energy Projects
-
-
InfluxDB
Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
-
-
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Show HN: CycleQuest – Indoor Cycling game with steering | news.ycombinator.com | 2024-04-04
- Comes with ready-to-use models and textures
To generate roads, I downloaded .gpx files from my Strava activities, then implemented a parser to take coordinates and elevations and build roads in-game using EasyRoads3D. These tools combined worked quite well but required some manual work. I had to go over the entire length of the road to smoothen it up (due to GPS noise in .gpx files). The terrain also didn’t always perfectly align with the road, so I had to manually modify it.
I figured that steering would be a good way to keep the user engaged in the gameplay, instead of just sitting on the bike and pedalling. With required steering, you need to be engaged to not drive off the road.
There are some solutions to virtual steering in other smart trainer games, but they are hardware-based - e.g., for Zwift, you need to buy their hardware controller. I really wanted to keep it as simple and inexpensive as possible, so I used a smartphone mounted to the handlebars as a steering controller.
I implemented native apps for both iOS and Android. They use the gyroscope to get the steering value and broadcast it as a BLE peripheral. Implementing Bluetooth in Unity was a little tricky as there is no built-in solution. The implementation depends on the platform the game is running on. It boils down to writing a native plugin for each platform you support.
For macOS, there is an open-source library written in Swift - https://github.com/codeinversion/sensors-swift. It already has the necessary services and characteristics implemented. I had to modify it a little and compile it into a Unity plugin.
For Windows, there also is a library - https://github.com/adabru/BleWinrtDll, but it wasn’t working too well. Because I targeted UWP, I was able to implement my own Bluetooth logic in C# and compile it directly in Unity.
Overall, it was a really fun project to work on. I’m particularly happy that I was able to release it starting from scratch in just a couple of months, and I hope to continue working on it.
-
-
-
Bloom
Current development of a BLE Application utilizing Swift UI. This app is meant to utilize the central manager to connec to an HM-10 and an Arduino in order to control a strip of WS2812B lights (by Gcerpa01)
Swift bluetooth-low-energy discussion
Swift bluetooth-low-energy related posts
-
Question about location based system lock
-
Lock Mac when walking away
-
Ask questions to programmers!
-
Applications for locking Mac/iPhone/iPad when we leave them wearing an Apple Watch?
-
Possible to request password/touch-id after sleep but NOT after screensaver?
-
Continuous Glucose Monitoring on the Apple Watch
-
Intel WiFi Card & Apple Watch Unlock: success on latest Monterey!
-
A note from our sponsor - SaaSHub
www.saashub.com | 7 Sep 2024
Index
What are some of the best open-source bluetooth-low-energy projects in Swift? This list will help you:
Project | Stars | |
---|---|---|
1 | BLEUnlock | 2,615 |
2 | BluetoothKit | 2,267 |
3 | Pulsator | 1,421 |
4 | RxBluetoothKit | 1,407 |
5 | BlueCap | 713 |
6 | AirPods Battery Monitor For MacOS | 417 |
7 | LittleBlueTooth | 79 |
8 | sensors-swift | 54 |
9 | BLE_Swift_ESP32_SampleProject | 51 |
10 | RVS_BlueThoth | 14 |
11 | Bloom | 1 |