This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reading sensor data from nrf52 in ios

So I am using nrf52832 and making a whole new app in ios. My objective of the app is to get the sensor data (specially motion sensor data and accelerometer data) which is connected to nrf52832. So far I have reached the stage where I can scan the device, connect the device, disconnect the device, send text message from app which is received by UART. I referred nRF Toolbox ios app. The sensor data is received in nRF Connect ios app but is not open source. The nRF SDK might have the code but it's purely in C and it will not be much help for me. While reading Core Bluetooth Documentation of Apple, I did come across topic : " Explore a Peripheral's Data Wisely and Subscribe to Characteristic Values That Change Often ". But I am not quite sure if I am on right track and if I am where should I be putting that code in my existing project.
I have been trying all possible ways and yet didn't find a solution. 

Just for understanding I am coding in Swift 4.


Any sort of help, guide, step, way is very much helpful and appreciated. 

Parents Reply
  •  and  Thank you so much for taking in time to help me. I was successfully able to complete what I was searching for from days.  I did have a look at how it worked but it was completely in some other direction and also I wasn't able to connect the dots. So I figured out by understanding the documentation of Core Bluetooth and GATT. What I came to know is that it uses UART over BLE which Core Bluetooth Framework already has it inbuilt. Apart from that Characteristic UUID and Service UUID must be known before communicating with the sensor inorder to get values from it. 

Children
No Data
Related