Coder Social home page Coder Social logo

thermometer's Introduction

Thermometer

This example uses the Health Thermometer Profile to send thermometer information:

  1. Sensor location: thermometer placement on the body. The default value in this application is the ear (LOCATION_EAR). The characteristic description shows the other possible values.

  2. Temperature: the initial temperature is 39.6, and it's incremented by 0.1 every half second. It resets to 39.6 when it reaches 43.0.

For more information see:

Running the application

Requirements

The sample application can be seen on any BLE scanner on a smartphone. If you don't have a scanner on your phone, please install :

Hardware requirements are in the main readme.

Building instructions

Building instructions for all mbed OS samples are in the main readme.

Checking for success

Note: Screens captures depicted below show what is expected from this example if the scanner used is nRF Master Control Panel version 4.0.5. If you encounter any difficulties consider trying another scanner or another version of nRF Master Control Panel. Alternative scanners may require reference to their manuals.

  1. Build the application and install it on your board as explained in the building instructions.

  2. Open the BLE scanner on your phone.

  3. Start a scan.

    figure 1 How to start scan using nRF Master Control Panel 4.0.5

  4. Find your device; it should be named Therm.

    figure 2 Scan results using nRF Master Control Panel 4.0.5

  5. Establish a connection with your device.

    figure 3 How to establish a connection using Master Control Panel 4.0.5

  6. Discover the services and the characteristics on the device. The Health Thermometer service has the UUID 0x1809 and includes the Temperature Measurement characteristic which has the UUID 0x2A1C.

    figure 4 Representation of the Thermometer service using Master Control Panel 4.0.5

  7. Register for the notifications sent by the Temperature Measurement characteristic.

    figure 5 How to register to notifications using Master Control Panel 4.0.5

  8. You should see the temperature value change every half second. It begins at 39.6, goes up to 43.0 (in steps of 0.1), resets to 39.6 and so on.

    figure 6 Notifications view using Master Control Panel 4.0.5

thermometer's People

Contributors

chocolatepatty avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.