Endereço: http://vps-e0f0b0d2.vps.ovh.ca:7655/
Metodo: POST
Endpoint: /api/v1/sensor
Body:
{
"panel_chain": number,
"panel_voltage": number,
"battery_chain": number
}
Resposta:
{
"success": booolean (true | false),
"data": {
"id": number,
"panel_chain": number,
"panel_voltage": number,
"battery_chain": number,
"updatedAt": date,
"createdAt": date
}
}
Metodo: GET
Endpoint: /api/v1/sensor_lastrecord
Resposta:
[
{
"id": number,
"panel_chain": number,
"panel_voltage": number,
"battery_chain": number,
"updatedAt": date,
"createdAt": date
}
]