STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
main.cpp File Reference
#include "main.h"
#include <Adafruit_BME280.h>
#include <Arduino.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <STAR_EthernetOTA.h>
#include <Wire.h>
#include <daq-protocol.h>
#include <esp_mac.h>
#include "firmware_hash.h"
#include "pins.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void setup ()
void loop ()

Variables

static Adafruit_BME280 bme
static EthernetUDP udp
static StarOTA::Server ota_server (ENV_OTA_PORT)
static byte mac [6]
static IPAddress server_ip (192, 168, 2, ENV_SERVER_IP_OCTET_4)
static IPAddress static_ip (192, 168, 2, ENV_BOARD_ID)
static IPAddress gateway (192, 168, 2, 1)
static IPAddress subnet (255, 255, 255, 0)
static IPAddress dns_ip (192, 168, 2, 1)
static uint8_t pkt_buf [64]

Function Documentation

◆ loop()

◆ setup()

Variable Documentation

◆ bme

Adafruit_BME280 bme
static

Definition at line 16 of file main.cpp.

Referenced by loop(), and setup().

◆ dns_ip

IPAddress dns_ip(192, 168, 2, 1) ( 192 ,
168 ,
2 ,
1  )
static

Referenced by setup().

◆ gateway

IPAddress gateway(192, 168, 2, 1) ( 192 ,
168 ,
2 ,
1  )
static

◆ mac

byte mac[6]
static

Definition at line 20 of file main.cpp.

◆ ota_server

StarOTA::Server ota_server(ENV_OTA_PORT) ( ENV_OTA_PORT )
static

Referenced by loop(), and setup().

◆ pkt_buf

uint8_t pkt_buf[64]
static

Definition at line 28 of file main.cpp.

Referenced by loop(), and main().

◆ server_ip

IPAddress server_ip(192, 168, 2, ENV_SERVER_IP_OCTET_4) ( 192 ,
168 ,
2 ,
ENV_SERVER_IP_OCTET_4  )
static

Referenced by loop().

◆ static_ip

IPAddress static_ip(192, 168, 2, ENV_BOARD_ID) ( 192 ,
168 ,
2 ,
ENV_BOARD_ID  )
static

Referenced by setup().

◆ subnet

IPAddress subnet(255, 255, 255, 0) ( 255 ,
255 ,
255 ,
0  )
static

◆ udp

EthernetUDP udp
static

Definition at line 17 of file main.cpp.