Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Internet of Things with Arduino Blueprints

You're reading from   Internet of Things with Arduino Blueprints Develop interactive Arduino-based Internet projects with Ethernet and WiFi

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785285486
Length 210 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Pradeeka Seneviratne Pradeeka Seneviratne
Author Profile Icon Pradeeka Seneviratne
Pradeeka Seneviratne
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Internet-Controlled PowerSwitch FREE CHAPTER 2. Wi-Fi Signal Strength Reader and Haptic Feedback 3. Internet-Connected Smart Water Meter 4. Arduino Security Camera with Motion Detection 5. Solar Panel Voltage Logging with NearBus Cloud Connector and Xively 6. GPS Location Tracker with Temboo, Twilio, and Google Maps 7. Tweet-a-Light – Twitter-Enabled Electric Light 8. Controlling Infrared Devices Using IR Remote Index

Wi-Fi signal strength and RSSI

The Arduino WiFi library provides us with a simple way to get the Wi-Fi signal strength in decibels ranging from 0 to -100 (minus 100). You can use the WiFi.RSSI() function to get the radio signal strength of the currently connected network or any specified network. You can read more about Received Signal Strength Indication (RSSI) at https://en.wikipedia.org/wiki/Received_signal_strength_indication.

The WiFi.RSSI() function can be called with following parameters:

  • WiFi.RSSI();:This will return the signal strength of the currently connected Wi-Fi network.
  • WiFi.RSSI(WiFi Access Point);: This will return the signal strength of a specified Wi-Fi network. Wi-Fi Access Point is the name of the Wi-Fi network. For example, MyHomeWiFi.

Reading the Wi-Fi signal strength

Now we will write an Arduino sketch to get the RSSI value of the currently connected Wi-Fi network.

  1. Open a new Arduino IDE and copy the sketch named B04844_02_04.ino from the Chapter 2 sample code folder...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime