ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
example_irrigation.cpp File Reference
#include <Arduino.h>
#include <ArduinoLog.h>
#include <WiFi.h>
#include <Wire.h>
#include <sys/time.h>
#include "module_handler.hpp"
#include "modules/irrigation.hpp"
#include "modules/microsd.hpp"
#include "modules/wifi.hpp"

Go to the source code of this file.

Functions

void onReceive (int len)
 Callback for onReceive.
 
void onRequest ()
 Callback for onRequest.
 
void setup ()
 
void loop ()
 

Variables

const std::string ssid = "HARE_Lab"
 
const std::string password = ""
 
bool time_initialized
 
bool time_sync_successful
 

Function Documentation

◆ loop()

void loop ( )

Loop code

Definition at line 135 of file example_irrigation.cpp.

References ModuleIrrigation::CheckAutoIrrigation(), and HandleClient().

◆ onReceive()

void onReceive ( int  len)

Callback for onReceive.

See Arduino wire library for reference

Definition at line 45 of file example_irrigation.cpp.

References ModuleHandler::ModuleHandler::OnReceive().

Referenced by setup().

◆ onRequest()

void onRequest ( )

Callback for onRequest.

See Arduino wire library for reference

Definition at line 55 of file example_irrigation.cpp.

References ModuleHandler::ModuleHandler::OnRequest().

Referenced by setup().

◆ setup()

Variable Documentation

◆ password

const std::string password = ""

Definition at line 27 of file example_irrigation.cpp.

Referenced by setup().

◆ ssid

const std::string ssid = "HARE_Lab"

Definition at line 26 of file example_irrigation.cpp.

Referenced by setup().

◆ time_initialized

bool time_initialized

Definition at line 37 of file example_irrigation.cpp.

Referenced by setup().

◆ time_sync_successful

bool time_sync_successful

Definition at line 38 of file example_irrigation.cpp.

Referenced by setup().