• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Samsung Smartwatch as Proximity Switch : Part III

By Abhishek Ghosh February 20, 2020 9:56 am Updated on March 9, 2020

Samsung Smartwatch as Proximity Switch : Part III

Advertisement

Instead of publishing a single article on a complex matter, we split into parts. This methodology makes the thing boring to the initial readers but in the long term, the readers can browse our website and fix themselves. In the previous two parts of this topic (here is part I and here is part II), we created the base with theory and practical so that even an unused reader does not get confused or need to web search to get our code working.

In this part of the guide, we are providing a basic code which will respond to any nearby BLE device including Samsung Smartwatch. This code has no MAC address filtering. We found this code on GitHub as Gist published by wybiral.

Upload the above code to ESP32 configured as Arduino. Whenever you’ll bring your Samsung Smartwatch (with Bluetooth ON) closer to it, the onboard blue LED of ESP32 will glow. The code is non-specific to the MAC address of Samsung Smartwatch. The code gives the idea “It Works!”. The variable “const int CUTOFF” is for adjusting the distance. -60 is a value which is quite closer.

Advertisement

---

Samsung Smartwatch as Proximity Switch

How we will filter the devices and make ESP32 respond to only our watch? We have to inform the ESP32 about the BLE address, Service and characteristic UUID that we obtained through the nRF connect mobile application as explained in the previous guides. Part of the extra snippets will look like below :

static BLEUUID serviceUUID("paste-the-number"); //Service UUID of the watch we got through nRF connect mobile application, optional to pair
static BLEUUID charUUID("paste-the-number"); //Characteristic UUID of the watch we got through nRF connect mobile application, optional to pair
String My_BLE_Address = "paste-the-number"; //Hardware Bluetooth MAC address of the watch, 

Now, when our watch will find the devices by scanning, our code should start to check if the discovered BLE address matches with the one which we entered in the code. But, ultimately we have to make the ESP32 to act as a client and then connect to the address of the BLE server.

Click here to read the forth part of this series.

This Article Has Been Shared 367 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Samsung Smartwatch as Proximity Switch : Part III

  • ESP32 Arduino : Create a Webpage to Control a Relay Module

    Here is How to Create a Webpage to Control a Relay Module Using ESP32 Arduino. This is a basic example which provides the base of advanced projects.

  • ESP32 Arduino Built-in Hall Sensor Code & Theory

    ESP32 has a Hall Effect Sensor near pin 22. Here is ESP32 Arduino Built-in Hall Sensor Code & Theory. Here is something about Hall Effect Sensor as well.

  • ESP32 Arduino OLED Display Example (I2C)

    Interfacing OLED without I2C is difficult with ESP32, as it requires 6 connections. I2C based OLED display need only two IO lines.

  • ESP32 Arduino : Fetching Current Weather Data (No JSON Parsing)

    In this guide we have shown how to fetch current weather data from ESP32 Arduino. This code example is basic and no JSON parsing is shown.

  • Tips For Building Digital Switch With ESP32 Arduino

    There are some design considerations to increase safety while building an ESP32 Arduino based physical switch controlled by IoT project.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022
  • How To Choose Your Niche As An Instagram Influencer May 12, 2022
  • How to Choose a Powerful Domain Name for Your New Venture May 12, 2022
  • How To Leverage Big Data In Social Media May 11, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Samsung Smartwatch as Proximity Switch : Part III," in The Customize Windows, February 20, 2020, May 16, 2022, https://thecustomizewindows.com/2020/02/samsung-smartwatch-as-proximity-switch-part-iii/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy