Update P4FollowLine authored by Roberto's avatar Roberto
...@@ -38,6 +38,37 @@ void loop(){ ...@@ -38,6 +38,37 @@ void loop(){
} }
``` ```
- Para comprobar la conexión WiFi utiliza el siguiente código:
```
#include "WiFi.h"
const char* ssid = SECRET_SSID;
const char* password = SECRET_PSW;
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.println("Connecting to WiFi..");
}
Serial.println("Connected to the WiFi network");
Serial.println(WiFi.localIP());
}
void loop() {
}
```
## Mensajes ## Mensajes
Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
... ...
......