1
0

estructura basica del proecto + wifi

This commit is contained in:
Jose
2025-04-09 08:41:08 +02:00
parent 09542bc474
commit bef8b30f2c
15 changed files with 61 additions and 16 deletions

View File

@@ -1,16 +1,12 @@
#include "main.hpp"
const char* ssid = "SiempreHome";
const char* password = "d7?a35D9EnaPepXY?c!4";
const char* mqtt_server = "192.168.0.155";
WiFiClient espClient;
PubSubClient client(espClient);
long lastMsg = 0;
char msg[50];
void setup() {
Serial.begin(9600);
if(setup_wifi() != 0)
{
Serial.print("Error connecting to WiFI");
}
}
void loop() {