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 Link (https://www.dfrobot.com.cn)
SKU: EDU0157
- Retrieve data from the Lark Weather Station sensors.
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.
/**
* @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();
MCU | Work Well | Work Wrong | Untested | Remarks |
---|---|---|---|---|
Arduino Uno | √ | |||
Arduino MEGA2560 | √ | |||
Arduino Leonardo | √ | |||
FireBeetle-ESP8266 | √ | |||
FireBeetle-ESP32 | √ | |||
FireBeetle-M0 | √ | |||
Micro:bit | √ |
- 2023/06/8 - Version 1.0.0
Written by TangJie ([email protected]), 2021. (Welcome to our website)