mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-23 08:45:22 +03:00
- Move globals to anonymous namespaces.
- Move private static variables to anonymous namespaces. - Remove espnow prefix from names where it is not required.
This commit is contained in:
@ -28,6 +28,15 @@
|
||||
namespace
|
||||
{
|
||||
constexpr char SERVER_IP_ADDR[] PROGMEM = "192.168.4.1";
|
||||
|
||||
String _temporaryMessage;
|
||||
String lastSSID;
|
||||
bool staticIPActivated = false;
|
||||
|
||||
// IP needs to be at the same subnet as server gateway (192.168.4 in this case). Station gateway ip must match ip for server.
|
||||
IPAddress staticIP;
|
||||
IPAddress gateway(192,168,4,1);
|
||||
IPAddress subnetMask(255,255,255,0);
|
||||
}
|
||||
|
||||
const IPAddress TcpIpMeshBackend::emptyIP;
|
||||
@ -35,16 +44,6 @@ const IPAddress TcpIpMeshBackend::emptyIP;
|
||||
std::shared_ptr<bool> TcpIpMeshBackend::_tcpIpTransmissionMutex = std::make_shared<bool>(false);
|
||||
std::shared_ptr<bool> TcpIpMeshBackend::_tcpIpConnectionQueueMutex = std::make_shared<bool>(false);
|
||||
|
||||
String TcpIpMeshBackend::lastSSID;
|
||||
bool TcpIpMeshBackend::staticIPActivated = false;
|
||||
|
||||
String TcpIpMeshBackend::_temporaryMessage;
|
||||
|
||||
// IP needs to be at the same subnet as server gateway (192.168.4 in this case). Station gateway ip must match ip for server.
|
||||
IPAddress TcpIpMeshBackend::staticIP;
|
||||
IPAddress TcpIpMeshBackend::gateway(192,168,4,1);
|
||||
IPAddress TcpIpMeshBackend::subnetMask(255,255,255,0);
|
||||
|
||||
std::vector<TcpIpNetworkInfo> TcpIpMeshBackend::_connectionQueue = {};
|
||||
std::vector<TransmissionOutcome> TcpIpMeshBackend::_latestTransmissionOutcomes = {};
|
||||
|
||||
|
Reference in New Issue
Block a user