Globo Terrestre IoT 1.0.0

Página Inicial

Documentação do WebSocket implementado no ESP8266 no padrão AsyncAPI 2.0.

Para a documentação da API implementada no ESP8266 no padrão OpenAPI 3.0, acesse aqui: /openapi

OBS: mDNS é compatível com Windows, OSX, Linux e iOS, mas não com Android.

Servers

ws://globo.local:81 ws

Conexão usando mDNS

ws://192.168.2.108:81 ws

Conexão usando IP Local

Operations

Pub /

Accepts the following message:

Evento transmitido ao servidor pela conexão WebSocket.

Payload
object

Coordenadas para o Globo Terrestre

lat
number

Latitude

lon
number

Longitude

height
integer

Altitude

Additional properties are NOT allowed.

Examples

coordinatesPubMessage
Payload
{
  "lat": 51.247,
  "lon": -160.853,
  "height": 20000
}
This example has been generated automatically.

Sub /

Accepts the following message:

Primeiro evento recebido após a conexão WebSocket.

Payload
object

Resposta de conexão bem sucedida.

op
string
Enum: "connect"
data
string

Additional properties are NOT allowed.

Examples

coordinatesSubMessage
Payload
{
  "op": "connect",
  "data": "Conexão estabelecida com Globo Terrestre IoT"
}
This example has been generated automatically.

Messages

#1

Evento transmitido ao servidor pela conexão WebSocket.

Payload
object

Coordenadas para o Globo Terrestre

lat
number

Latitude

lon
number

Longitude

height
integer

Altitude

Additional properties are NOT allowed.

#2

Primeiro evento recebido após a conexão WebSocket.

Payload
object

Resposta de conexão bem sucedida.

op
string
Enum: "connect"
data
string

Additional properties are NOT allowed.