|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include "main.h"Go to the source code of this file.
Functions | |
| static const char * | currentMessage () |
| The message this build prints. | |
| void | setup () |
| void | loop () |
Variables | |
| byte | mac [] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x05} |
| StarOTA::Server | otaServer (OTA_TCP_PORT) |
| unsigned long | lastPrintMillis = 0 |
| unsigned long | bootTime = 0 |
|
static |
The message this build prints.
Prefer STAR_OTA_TEST_MESSAGE — the library-wide flag that firmware/tools/ota_upload.py --message and the Test-GUI's OTA tab both set — and fall back to this project's older -DOTA_MESSAGE so the local ota_upload.py keeps working.
Definition at line 14 of file main.cpp.
References OTA_MESSAGE, and StarOTA::testMessage().
| void loop | ( | ) |
Definition at line 90 of file main.cpp.
References bootTime, currentMessage(), delay(), digitalWrite(), Ethernet, HIGH, lastPrintMillis, LOW, millis(), otaServer, Pins, PRINT_INTERVAL_MS, and Serial.
| void setup | ( | void | ) |
Definition at line 24 of file main.cpp.
References bootTime, currentMessage(), delay(), digitalWrite(), dns, Ethernet, ETHERNET_BEGIN_DELAY, ETHERNET_INIT_DELAY, ETHERNET_SPI_DELAY, gateway, lastPrintMillis, LOW, mac, millis(), OTA_DNS, OTA_GATEWAY, OTA_STATIC_IP, OTA_SUBNET, otaServer, OUTPUT, pinMode(), Pins, Serial, and subnet.
| unsigned long bootTime = 0 |
| unsigned long lastPrintMillis = 0 |
| StarOTA::Server otaServer(OTA_TCP_PORT) | ( | OTA_TCP_PORT | ) |
Referenced by loop(), pollNetwork(), and setup().