kevendasilva / emot-test

Aplicação de testes do emot (the amazing flower monitor).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alterar corpo das mensagens

kevendasilva opened this issue · comments

Alterar a resposta, para requisições no formato JSON. Abaixo o exemplo para cada entidade.

Componente:
{
"id": 1,
"name": "LED",
"kind": "actuator",
"port": 12,
"min_value": 0,
"max_value": 255
}

Output:
{
"value": 3,
"kind": "digital",
"component_id": 1
}