estructura basica del proecto + wifi
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user