Skip to content

boneskull/particle-dht22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

particle-dht22

Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron

Yes, this again.

Particle Cloud Functions

  • enable() - Turns reading from module "on"
  • disable() - Turns reading from module "off"
  • enableDeepSleep() - Enables sleep, but not actually "deep" sleep
  • disableDeepSleep() - Enables sleep, but not actually "deep" sleep
  • setDelay(short) - Set update delay in ms

Note: Particle Cloud Functions accept a single String value; this code coerces any args into the proper data type.

Particle Cloud Variables

  • settings - {String}: All settings in a JSON object. Properties:
    • enabled - {bool} (default true): Enabled or not
    • deepSleep - {bool} (default false): Deep sleep enabled or not
    • delay - {short} (default 900000; 15 minutes): Delay between reads in milliseconds

Notes

  • This code persists settings in EEPROM. Should I be doing this? I have no idea.
  • Going to try to hook this up to a LiPo battery
  • Might add a INA219 to check battery and/or an RTC module to do actual deep sleep.
  • The enclosure for this project will probably be clingfilm.

License

Copyright © 2019 Christopher Hiller. Licensed MIT

About

Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages