![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Utilities to facilitate setup of devices and interfaces. More...
#include <scheduler.hpp>
#include <OWMAdafruit_ADS1015.h>
#include <Adafruit_MAX1704X.h>
#include <WiFiClientSecure.h>
#include <WiFi.h>
#include <NimBLEDevice.h>
#include <NimBLEAddress.h>
#include <NimBLEAdvertisedDevice.h>
Go to the source code of this file.
Macros | |
#define | RO_MODE true |
define read only access mode for SD card files | |
#define | RW_MODE false |
define read/write access mode for SD card files | |
Functions | |
NTPClient | timeClient (ntpUDP) |
network time protocol object to get current time | |
void | setup_gpio () |
Initialize pins as input/output and set default state (HIGH/LOW) | |
void | setup_adc () |
Initialize the analog to digital converter. | |
void | setup_fuel_gauge () |
Initialize and set the state variable for the fuel gauge. | |
void | setup_i2c_sensors () |
Initialize ALL i2c bus dependent sensors. | |
void | setup_mqtt_connection () |
Configure mqtt client settings. | |
void | setup_ble () |
Initialize BLE stack. | |
void | setup_wifi_connection () |
Connect to WiFi, set flags, timeout, etc. | |
void | setup_wireless_connections () |
Setup all wireless interfaces including WiFi, BLE. | |
void | setup_logging () |
Initialize logging and get timestamp from network, if available, for logging. | |
Variables | |
Adafruit_ADS1115 | ads |
Analog to digital converter object (I2C) | |
Adafruit_MAX17048 | maxlipo |
MAX17048 battery Fuel Gauge. | |
bool | maxlipo_attached = true |
Fuel Gauge successfully initialized? | |
WiFiUDP | ntpUDP |
WiFi stack object to pass to the NTPClient. | |
int | reset_count |
number of resets retrieved for NVS | |
Utilities to facilitate setup of devices and interfaces.
Adafruit_ADS1115 ads |
Analog to digital converter object (I2C)
Interface for the analog to digital converter.
Adafruit_MAX17048 maxlipo |
MAX17048 battery Fuel Gauge.
Interface for the battery fuel gauge.
Fuel Gauge successfully initialized?
External flag indicating whether maxlipo was initialized successfully.
|
extern |
number of resets retrieved for NVS
External variable holding the number of resets recorded by the system. Stored and loaded from non-volatile storage.