How to connect a smart watch to the cloud
The Internet of Things is transforming how we live and work, quickly becoming part of our everyday lives. Wearables are a perfect example, so in this demo I’m going to show you how Kii fits into an IoT scenario using the Samsung Gear Live smart watch. Packing a heart rate sensor, it’s one of the hottest fitness watches on the market right now.
This demo involves three different endpoints communicating with each other:
- LG Nexus 4 mobile phone (running Android KitKat with API 19)
- Samsung Gear Live smart watch (running Android 4.4W with API 20)
- Kii platform (our scalable, secure cloud-connected backend platform)
Here’s how it’ll work: The watch will send heart rate data packets to the phone and then the phone will send them to Kii’s cloud. To follow along, you’ll need:
- The latest version of Android Studio (it won’t run on Eclipse unmodified).
- A properly configured watch emulator or Android Wear compatible smart watch.
- A Kii account (free to try) to enable our cloud for IoT projects.
A possible use case for this kind of application is monitoring the elder and notifying other people if things go wrong (besides heart rate you could also monitor the accelerometer in the wearable to detect someone falling).
Rule of three endpoints
For the most part, customers don’t care how things work as long as they do work. But creating a seamless experience isn’t easy. Infrastructure, of course, is one of the biggest IoT challenges across verticals. It needs to meet the changing requirements of scale and data management, run on standards, and be highly secure and interoperable. As an AllSeen Alliance member, Kii believes in an open standard, integrated architecture from the cloud to end devices, with exceptional reliability and security.
Obviously we trust on our cloud platform to make IoT initiatives work smoothly. Kii is accessed on-demand by a high level API, secure, fast and able to scale to millions of devices without service interruption. Plus, development teams benefit from no server management, maintenance, installations or upgrades.
Another very practical challenge is moving data from IoT hardware to the cloud. Due to size or other design requirements, many simple smart devices don’t have Wi-Fi or Ethernet. Instead they rely on an internet capable device such as a mobile phone or tablet to exchange data with a cloud (such as Kii). The IoT device hardware does not access the internet directly. All cloud requests are handled by the phone or tablet, which acts as a hub. Users also get to enjoy nifty apps that chart endurance and time spent in a target heart rate zone, for example.