forked from nonnos/AMConnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAMConnect_config.h.sample
43 lines (36 loc) · 1.72 KB
/
AMConnect_config.h.sample
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
41
42
43
// Wifi settings
const char* ssid = "wifi";
const char* password = "password";
// mqtt settings
const char* mqtt_server = "YOUR_MQTT_BROKER_IP_ADDRESS";
const char* mqtt_username = "username";
const char* mqtt_password = "password";
const char* mqtt_command_topic = "automower/command";
const char* mqtt_debug_topic = "automower/debug";
const char* mqtt_status_topic = "automower/status";
const char* mqtt_ha_status_topic = "automower/hastatus";
const char* mqtt_location_topic = "automower/location";
const char* mqtt_preferences_topic = "automower/preferences";
const char* mqtt_prefstatus_topic = "automower/prefstatus";
const char* mqtt_lwt_topic = "automower/lwt";
const char* mqtt_uptime_topic = "automower/uptime";
const char* mqtt_rssi_topic = "automower/rssi";
// Define the port used for serial communication with the AutoMower.
// Here we use Serial1, on pins 15 (RX) and 2 (TX)
#define AMSerialRX 15
#define AMSerialTX 2
// Define if GPS attached (true/false) and the port used for GPS. In this case, Serial2 on default pins (RX 16, TX 17)
#define GPS_ATTACHED true
#define gpsPort Serial2
#define GPS_PORT_NAME "Serial2"
// Define the debug serial port
#define DEBUG_PORT Serial
// Define the interval between position updates
#define gpsInterval 10
//Define the poll interval in seconds
#define pollInterval 60
// Defines if the values for pollInterval & gpsInterval should be read from internal memory in the device
// 1 = read internal values, 0 = overwrite internal values with config-readInternalValues
// This can be used for setting the values over MQTT by sending pollInterval:xx on topic automower/preferences
// and is stored in the device after a reboot.
#define readStoredPreferences 0