Skip to content

Converts a hexadecimal code to informative data of door status upon opening or closing:

Notifications You must be signed in to change notification settings

heloayer/door-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

DOOR STATUS

Hexadecimal Code to Data

The program converts the given hex code to informative data of door status upon opening or closing:

  • Temperature
  • Humidity
  • Magnetic Status

The given hex code in a format of EM300 (Environment Monitoring Sensor)

Used stack

  • Golang

Libraries:

  • "encoding/hex"
  • "fmt"

Installation

Run the program using

 go run .

Use one of these hexadecimal codes to take out the data

 0367F600046882060001

Output: 
    Temperature: 24.6 C
    Humidity: 65%
    MagneticStatus: Open

 0367FFFFE1046882060001

Output: 
    Temperature: -31.0 C
    Humidity: 65%
    MagneticStatus: Open

Autor

Ansar Issabekov https://www.linkedin.com/in/ansarissabekov/

Documentation

EM300 Series (Environment Monitoring Sensor)

  • Section “5.2 Sensor Data” explains how to decode the measurements the sensor sends.

EM300-MCS Overview

About

Converts a hexadecimal code to informative data of door status upon opening or closing:

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages