Update P4FollowLine authored by Roberto's avatar Roberto
......@@ -90,10 +90,23 @@ void setup() {
void loop() {
}
```
## Comunicación IoT
### MQTT
Tendrás que conectarte y mantener la conexión abierta para mandar mensajes al servidor según vayas completando el circuito.
Server: 193.147.53.2
Port: 10000
## 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 y utilizando obligatoriamente el siguiente TOPIC
```bash
/SETR/2022/$ID_EQUIPO/
```
#### Mensaje de inicio de vuelta
* Descripción: Este mensaje debe enviarse siempre justo antes de empezar la vuelta al circuito. Por tanto debe realizarse sólo 1 vez.
......@@ -102,7 +115,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "START_LAP"
}
```
......@@ -114,7 +127,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "END_LAP"
}
```
......@@ -126,7 +139,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "OBSTACLE_DETECTED"
}
```
......@@ -138,7 +151,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "LINE_LOST"
}
```
......@@ -150,7 +163,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "LINE_FOUND"
}
```
......@@ -163,7 +176,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "INIT_LINE_SEARCH"
}
```
......@@ -175,7 +188,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "STOP_LINE_SEARCH"
}
```
......@@ -187,7 +200,7 @@ Tu robot debe mandar los siguientes mensajes siempre conectando al servidor MQTT
```json
{
"team_name": "$TU_NOMBRE_DE_EQUIPO ",
"id": "$TU_ID",
"id": "$ID_EQUIPO",
"action": "PING"
}
```