gregiOS / Playgrounds

26 stars 6 forks source link

Tutorial helping create custom characteristics #1

Open isa3bel opened 4 years ago

isa3bel commented 4 years ago

Hello,

I am using my MacBook as a peripheral, but it doesn't give off characteristics, and I'm trying to create two custom characteristics for read and write. Does this tutorial cover how to create custom characteristics https://itnext.io/swift-playgrounds-simulating-bluetooth-low-energy-cf5738c15a8c?

Thanks!

gregiOS commented 4 years ago

Hello, Thank you for your Interest in my project. Yes the tutorial shows how to setup peripheral with custom characteristics. In case of any issues feel free to ask her for a help.

isa3bel commented 4 years ago

Yes thank you! Will you please keep this issue open in case I want to ask for additional support? Thank you!

isa3bel commented 4 years ago

Hey @gregiOS, I was wondering where in my code currently I should add the custom characteristic.

image

this is what my console looks like. It's showing 0 bytes, which means that the service is giving off no characteristics? I'm not too sure how all of this works to be honest, but I provided you access to the repo if you wanna check out the code. specifically in the ViewController (https://github.com/MountLocks/NewMountApp/blob/master/ScannerApp/ViewController.swift) Thanks for any help