-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAllApps.h
More file actions
executable file
·40 lines (31 loc) · 1.75 KB
/
AllApps.h
File metadata and controls
executable file
·40 lines (31 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
///////////////////////////////////////////////////////////////////////////////
/* AllApps.h - general settings that span all Arduino / Microcontroller related apps.
Settings here allow the libraries to remain generic and not device
specific. */
///////////////////////////////////////////////////////////////////////////////
#ifndef AllApps_h
#define AllApps_h
#include <inttypes.h> // data types, e.g. uint16_t
#include <limits.h>
/**************************************************************************************/
// Environment Settings File
/**************************************************************************************/
/* Device Credentials - Set these for your environment */
#define WIFI_SSID "enter-your-wifi-ssid"
#define WIFI_PASSWORD "enter-your-wifi-password"
#define MQTT_ADDRESS "enter-your-mqtt-address" // e.g. 192.168.0.23
#define UTC_OFFSET_HOURS (-7)
#define ENV_SETTINGS_FILENAME "/env.json"
#define JSON_PROP_VERSION "version"
#define JSON_PROP_WIFI_SSID "wifi_ssid"
#define JSON_PROP_WIFI_PASSWORD "wifi_password"
#define JSON_PROP_MQTT_ADDRESS "mqtt_address"
#define JSON_PROP_TIMEZONE_OFFSET "tz_offset_hours"
/* MQTT Device & Topic Names */
#define TOPIC_PREFIX_DEVICE "device" // Prefix for device related topics
/**************************************************************************************/
// App Settings File
/**************************************************************************************/
#define APP_SETTINGS_FILENAME "/app.json"
#define JSON_PROP_DEVICE_NAME "device_name"
#endif