hanze/muizenval

dump/remote.h in master
Repositories | Summary | Log | Files

remote.h (359B) download


 1#pragma once
 2
 3#include <Arduino_JSON.h>
 4
 5struct serial_remote {
 6	struct http_packet {
 7		const char* method;
 8		const char* endpoint;
 9		JSONVar		headers;
10		JSONVar		body;
11	};
12
13	void		begin();
14	bool		available();
15	void		connect(const char* host, int port);
16	const char* send(http_packet request, http_packet& response);
17	const char* send(http_packet request);
18};