Is it possible turn on and off Bluetooth by coding in Android Wear? I couldn't find anything online.
It's possible in Android mobile apps, but I want to know whether the same is possible with android watches.
Related
So, for the start I have a smart light device. I want to develop a app which searches this smart light and then connect to it. After connection I want to access the traits offered by that smart light and control it from my application.
What I have tried is, I have used Android NSD service to discover devices but I didn't get the smart light device.
Here is what I referred to
https://developer.android.com/training/connect-devices-wirelessly/nsd
https://developer.android.com/guide/topics/connectivity/wifip2p
I am developing one app which uses bluetooth low energy for communication between device and App. My device is peripheral and App is central.While developing Android app, I have added some custom ble services by creating gattserver on android app side and it is working ok. Now i want to achieve same thing with iOS.
My question is how to add gattserver in iOS app? Or iOS used some other procedure to achieve the same.
I belive iOS uses the CoreBluetooth system to achive this. Check out this example
https://developer.apple.com/library/content/samplecode/BTLE_Transfer/Introduction/Intro.html
There are like on Android two modes, Central and Peripheral. You want to be the in the Central mode here too. Then it should work similar to the Android GATT server.
Thanks Jotunacorn for your link
This link help me to solve my issue
Implement gattserver on iPhone
Is there a way to create an app to recognize an android smartphone as a bluetooth gamepad?
Every app I found on the store is a client/server app but it's not what I need.
I want to develop an Android application which can simulate different Bluetooth devices in one.
for example on launching this application my android device or Computer system act at Bluetooth watch to other devices.
The closest solution I found is a IOS application by Attack pattern .com
http://attackpattern.com/work/bluetooth/
I tried to develop the similar application in android or LINUX system but not find any solution.
Please help.
I want to connect a 3rd party bluetooth device to my Android Wear watch (Samsung Gear Live). I am trying to find documentation on how to do this but I am not having any luck. All the searches I do seem to think I want to attach to a phone.
Does anyone know of a good example that shows how to connect, for example, a bluetooth heart rate monitor (or other device) to the Android Wear so I can keep a history when the phone isn't present? Is this even possible? Would it be the same protocols as doing it from a phone/tablet?
#Ryan Tensmeyer, I think #Wayne Pieksarki's answer is now out-dated. I was able to create and run a stand-alone app that used BLE to connect to a third-party bluetooth device, namely, a wireless thermometer. I used a library called SweetBlue and tested the stand-alone app on an Android Wear Moto 360. It worked great -- no phone required!
It is not possible to connect 3rd party bluetooth devices to an Android Wear watch as you describe. You will need to pair your heart rate monitor with your phone, extract the data you want, and then use the Data Layer API to send the data to the wearable for display to the user.
EDIT: Android Wear devices now support the ability to pair with Bluetooth devices.