mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Implementación de IP estática
This commit is contained in:
parent
ec4742145f
commit
385adaf90a
4 changed files with 15 additions and 5 deletions
|
|
@ -56,8 +56,18 @@ void setup() {
|
|||
canController.start();
|
||||
canController.start_listening_task();
|
||||
|
||||
// 2. INICIAR WIFI
|
||||
// 2. INICIAR WIFI
|
||||
Serial.println("--- CONECTANDO WIFI ---");
|
||||
|
||||
//IP estática dentro de la red del CPE (DHCP desactivado en el CPE)
|
||||
IPAddress local_IP(192, 168, 0, 50);
|
||||
IPAddress gateway(192, 168, 0, 254);
|
||||
IPAddress subnet(255, 255, 255, 0);
|
||||
|
||||
if (!WiFi.config(local_IP, gateway, subnet)) {
|
||||
Serial.println("[ERR] Fallo al configurar IP estática");
|
||||
}
|
||||
|
||||
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
|
||||
|
||||
int intentos = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue