Skip to content

caveman99/DFRobot_LarkWeatherStation

 
 

Repository files navigation

DFRobot_LarkWeatherStation

This is a driver library for the Lark Weather Station, which allows you to retrieve data from the sensors on the Lark Weather Station.

Product Image

SKU: EDU0157

Table of Contents

Overview

  • Retrieve data from the Lark Weather Station sensors.

Library Installation

Before using this library, please download the library file and paste it into the \Arduino\libraries directory. Then, open the examples folder and run the demo in that folder.

Methods

/**
 * @brief Get sensor data
 *
 * @param keys Data to be obtained
 * @return String Returns the acquired data
 */
String getValue(char *keys);

/**
 * @brief Get data unit
 *
 * @param keys Data for which units need to be obtained
 * @return String Returns the obtained units
 */
String getUnit(char *keys);

/**
 * @brief Get all data
 *
 * @param state true: include timestamp, false: do not include timestamp
 * @return String Returns all the acquired data
 */
String getInformation(bool state);

/**
 * @brief Set RTC time
 *
 * @param year Year
 * @param month Month
 * @param day Day
 * @param hour Hour
 * @param minute Minute
 * @param second Second
 * @return Returns the set status
 */
uint8_t setTime(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second);

/**
 * @brief Get RTC time
 *
 * @return Returns the acquired RTC time
 */
String getTimeStamp();

Compatibility

MCU Work Well Work Wrong Untested Remarks
Arduino Uno
Arduino MEGA2560
Arduino Leonardo
FireBeetle-ESP8266
FireBeetle-ESP32
FireBeetle-M0
Micro:bit

History

  • 2023/06/8 - Version 1.0.0

Authors

Written by TangJie (jie.tang@dfrobot.com), 2021. (Welcome to our website)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 60.7%
  • Python 39.3%