summaryrefslogtreecommitdiff
path: root/client/main.h
blob: 693db9154ee1ba7d73e4742f41cb4ebd26b9d951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "../shared/protocol.h"

typedef struct {
	unsigned int ping;
	uint8_t ping_id;
	bool ping_received;

	bool connected;
	uint8_t battery_level;

	w2_s_cmd_info_tx info;
	w2_s_cmd_sens_tx io;
} w2_s_client_state;

extern w2_s_client_state g_w2_state;