Files
bobbycar-boardcomputer-firm…/main/cloud.h
T

28 lines
584 B
C++
Raw Normal View History

2021-06-28 21:43:20 +02:00
#pragma once
2021-09-21 21:45:20 +02:00
2021-12-29 05:42:08 +01:00
// system includes
#include <string>
2021-08-10 05:03:50 +02:00
// 3rdparty lib includes
#include <wrappers/websocket_client.h>
2021-12-29 05:42:08 +01:00
#include <espchrono.h>
2021-06-28 21:43:20 +02:00
2022-03-18 11:30:06 +01:00
// local includes
#include "bobbytypesafeenum.h"
2021-11-02 11:39:36 +01:00
extern espcpputils::websocket_client cloudClient;
extern bool cloudStarted;
extern espchrono::millis_clock::time_point lastCreateTry;
extern espchrono::millis_clock::time_point lastStartTry;
extern std::string cloudBuffer;
2021-08-10 05:03:50 +02:00
void createCloud();
void destroyCloud();
void startCloud();
2021-11-02 11:39:36 +01:00
void initCloud();
void updateCloud();
2021-11-02 11:39:36 +01:00
void cloudCollect();
void cloudSend();
2022-02-06 00:45:39 +01:00
std::string getLoginMessage();