|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
#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 |
| void loop | ( | ) |
Loop code
Definition at line 135 of file example_irrigation.cpp.
References ModuleIrrigation::CheckAutoIrrigation(), and HandleClient().
| 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().
| 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().
| void setup | ( | ) |
Startup code
Definition at line 61 of file example_irrigation.cpp.
References onReceive(), onRequest(), password, ModuleHandler::ModuleHandler::RegisterModule(), SetupServer(), ssid, time_initialized, and time_sync_successful.
| const std::string password = "" |
Definition at line 27 of file example_irrigation.cpp.
Referenced by setup().
| const std::string ssid = "HARE_Lab" |
Definition at line 26 of file example_irrigation.cpp.
Referenced by setup().
| bool time_initialized |
Definition at line 37 of file example_irrigation.cpp.
Referenced by setup().
| bool time_sync_successful |
Definition at line 38 of file example_irrigation.cpp.
Referenced by setup().