77 lines
1.8 KiB
C++
77 lines
1.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
|
|
*
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#define HOTSPOT
|
|
|
|
#ifdef HOTSPOT
|
|
namespace NetworkConfig
|
|
{
|
|
const char ssid[] = "KleiaxHandy";
|
|
const char password[] = "12345677";
|
|
const char ip[] = "192.168.43.4";
|
|
const char subnet[] = "255.255.255.0";
|
|
const char gateway[] = "192.168.43.1";
|
|
const char dns[] = "8.8.8.8";
|
|
const bool mqtt = false;
|
|
}
|
|
#endif // HOTSPOT
|
|
|
|
#ifdef HW1
|
|
namespace NetworkConfig
|
|
{
|
|
const char ssid[] = "hw1_gast";
|
|
const char password[] = "KeineAhnung";
|
|
const char ip[] = "192.168.0.4";
|
|
const char subnet[] = "255.255.255.0";
|
|
const char gateway[] = "192.168.0.1";
|
|
const char dns[] = "8.8.8.8";
|
|
const bool mqtt = false;
|
|
}
|
|
#endif // HW1
|
|
|
|
// Network config Rhede
|
|
#ifdef RHEDE
|
|
namespace NetworkConfig
|
|
{
|
|
const char ssid[] = "LebennigHuus";
|
|
const char password[] = "Punica-699";
|
|
const char ip[] = "192.168.11.4";
|
|
const char subnet[] = "255.255.128.0";
|
|
const char gateway[] = "192.168.0.1";
|
|
const char dns[] = "8.8.8.8";
|
|
const bool mqtt = true;
|
|
}
|
|
#endif // RHEDE
|
|
|
|
namespace MqttConfig
|
|
{
|
|
const char server[] = "192.168.1.7";
|
|
const uint16_t port = 1883;
|
|
const char user[] = "kleiax";
|
|
const char password[] = "p?{$_~5%hBM7wrcFkr55KWr#";
|
|
}
|
|
|
|
namespace NtripConfig
|
|
{
|
|
const char host[] = "rtk2go.com";
|
|
const uint16_t port = 2101;
|
|
// const char mountPoint[] = "GER-Dortmund";
|
|
// const char mountPoint[] = "GER-Papenburg";
|
|
const char mountPoint[] = "Rtkramerntrip";
|
|
const char user[] = "alklein1@gmx.de";
|
|
const char password[] = "none";
|
|
}
|