152 lines
3.8 KiB
C
152 lines
3.8 KiB
C
/**
|
|
* @file networkConfig.h
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief Contains the settings for the Network class
|
|
*
|
|
* With different defines the location can be choosen.
|
|
*
|
|
* @version 0.1
|
|
* @date 2022-02-15
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
|
|
// General config
|
|
#define MQTT_TIME_RECONNECT 2500
|
|
|
|
/**
|
|
* @brief Wlan connect timeout
|
|
*
|
|
* This number multiplied by WLAN_CONNECT_LOOP_TIME is the
|
|
* timeout in milliseconds.
|
|
*/
|
|
#define WLAN_CONNECT_TIMEOUT 20
|
|
|
|
/**
|
|
* @brief Wlan connect loop time
|
|
*
|
|
* The time in milliseconds until the next connection attempt.
|
|
*/
|
|
#define WLAN_CONNECT_LOOP_TIME 500
|
|
#define WLAN_DNS_SERVER "8.8.8.8"
|
|
#define ESP_NOW_CONTROLER_MAC {0xC8, 0xC9, 0xA3, 0xC8, 0x57, 0x10}
|
|
|
|
#define NTRIP_RTK2GO
|
|
|
|
// NTRIP config NRW
|
|
#ifdef NTRIP_NRW
|
|
#define NTRIP_HOST "www.sapos-nw-ntrip.de"
|
|
#define NTRIP_PORT 2101
|
|
#define NTRIP_MOUNT_POINT "VRS_3_3G_NW"
|
|
#define NTRIP_USER "nw-916771"
|
|
#define NTRIP_PASSWORD "Schalke#246"
|
|
#endif // NTRIP_NRW
|
|
|
|
// NTRIP config NS
|
|
#ifdef NTRIP_NS
|
|
#define NTRIP_HOST "openservice-sapos.niedersachsen.de"
|
|
#define NTRIP_PORT 2101
|
|
#define NTRIP_MOUNT_POINT "VRS_3_2G_NI"
|
|
#define NTRIP_USER "ni_FHDo01"
|
|
#define NTRIP_PASSWORD "ALdx-1-3e49"
|
|
#endif // NTRIP_NS
|
|
|
|
// NTRIP config RTK2Go
|
|
#ifdef NTRIP_RTK2GO
|
|
#define NTRIP_HOST "rtk2go.com"
|
|
#define NTRIP_PORT 2101
|
|
#define NTRIP_MOUNT_POINT "GER-Papenburg"
|
|
#define NTRIP_USER "alklein1@gmx.de"
|
|
#define NTRIP_PASSWORD "none"
|
|
#endif // NTRIP_RTK2GO
|
|
|
|
|
|
#define DORO
|
|
|
|
//Network config ESP32
|
|
#ifdef ESP32BROKER
|
|
#define WLAN_SSID "ESP32-Broker"
|
|
#define WLAN_PASSWORD "doit2022"
|
|
#define WLAN_IP "192.168.4.77"
|
|
#define WLAN_SUBNETMASK "255.255.255.0"
|
|
#define WLAN_GATEWAY "192.168.4.1"
|
|
#define MQTT_SERVER "192.168.4.1"
|
|
#define MQTT_PORT 1883
|
|
#endif //ESP32BROKER
|
|
|
|
//Network config Hotspot
|
|
#ifdef HOTSPOT
|
|
#define WLAN_SSID "Kleiax Handy"
|
|
#define WLAN_PASSWORD "12345677"
|
|
#define WLAN_IP "192.168.43.4"
|
|
#define WLAN_SUBNETMASK "255.255.128.0"
|
|
#define WLAN_GATEWAY "192.168.43.1"
|
|
// Only for defines reasons
|
|
#define MQTT_SERVER "172.22.64.216"
|
|
#define MQTT_PORT 1883
|
|
#endif //HOTSPOT
|
|
|
|
//Network config Rhede
|
|
#ifdef RHEDE
|
|
#define WLAN_SSID "LebennigHuus"
|
|
#define WLAN_PASSWORD "Punica-699"
|
|
#define WLAN_IP "192.168.11.4"
|
|
#define WLAN_SUBNETMASK "255.255.128.0"
|
|
#define WLAN_GATEWAY "192.168.0.1"
|
|
#define MQTT
|
|
#define MQTT_SERVER "192.168.1.7"
|
|
#define MQTT_PORT 1883
|
|
#define MQTT_AUTH
|
|
#define MQTT_USER "kleiax"
|
|
#define MQTT_PASSWORD "p?{$_~5%hBM7wrcFkr55KWr#"
|
|
#endif //RHEDE
|
|
|
|
//Network config Doro
|
|
#ifdef DORO
|
|
#define WLAN_SSID "Tuedelkram"
|
|
#define WLAN_PASSWORD "3Kaesehoch!"
|
|
#define WLAN_IP "192.168.178.4"
|
|
#define WLAN_SUBNETMASK "255.255.255.0"
|
|
#define WLAN_GATEWAY "192.168.178.1"
|
|
// Only for defines reasons
|
|
#define MQTT_SERVER "172.22.64.216"
|
|
#define MQTT_PORT 1883
|
|
#endif //DORO
|
|
|
|
//Network config HW1
|
|
#ifdef HW1
|
|
#define WLAN_SSID "hw1_gast"
|
|
#define WLAN_PASSWORD "KeineAhnung"
|
|
#define WLAN_IP "192.168.0.67"
|
|
#define WLAN_SUBNETMASK "255.255.255.0"
|
|
#define WLAN_GATEWAY "192.168.0.1"
|
|
#define MQTT
|
|
#define MQTT_SERVER "172.22.64.216"
|
|
#define MQTT_PORT 1883
|
|
#endif //HW1
|
|
|
|
//Network config FRENZY
|
|
#ifdef FRENZY
|
|
#define WLAN_SSID "GNX7EDD84-2"
|
|
#define WLAN_PASSWORD "2W2ZLPJ9NVQ3"
|
|
#define WLAN_IP 0x0F01a8c0 //192.168.1.15
|
|
#define WLAN_SUBNETMASK 0x00FFFFFF //255.255.255.0
|
|
#define MQTT
|
|
#define WLAN_GATEWAY 0xfe01a8c0 //192.168.1.254
|
|
#define MQTT_SERVER 0x0201a8c0 //192.168.1.2
|
|
#define MQTT_PORT 1883
|
|
#endif //FRENZY
|
|
|
|
//Network config TPMOBIL
|
|
#ifdef TPMOBIL
|
|
#define WLAN_SSID "TP-Mobil"
|
|
#define WLAN_PASSWORD "Punica-699"
|
|
#define WLAN_IP 0x0F01a8c0 //192.168.1.15
|
|
#define WLAN_SUBNETMASK 0x00FFFFFF //255.255.255.0
|
|
#define WLAN_GATEWAY 0x0101a8c0 //192.168.1.1
|
|
#define MQTT
|
|
#define MQTT_SERVER 0x0201a8c0 //192.168.1.2
|
|
#define MQTT_PORT 1883
|
|
#endif //TPMOBIL
|