2025-12-23 17:21:44 -06:00
|
|
|
#ifndef SOCKETIO_HPP
|
|
|
|
|
#define SOCKETIO_HPP
|
|
|
|
|
#include <atomic>
|
|
|
|
|
|
|
|
|
|
extern std::atomic<bool> statusResolved;
|
|
|
|
|
extern std::atomic<bool> connected;
|
|
|
|
|
|
|
|
|
|
// Initialize Socket.IO client and connect to server
|
|
|
|
|
void initSocketIO();
|
|
|
|
|
|
2025-12-24 18:39:21 -06:00
|
|
|
// Stop and destroy Socket.IO client
|
|
|
|
|
void stopSocketIO();
|
|
|
|
|
|
2025-12-28 20:52:11 -06:00
|
|
|
// Emit calibration stage events to server
|
|
|
|
|
void emitCalibStage1Ready(int port = 1);
|
|
|
|
|
void emitCalibStage2Ready(int port = 1);
|
|
|
|
|
void emitCalibDone(int port = 1);
|
2025-12-23 17:21:44 -06:00
|
|
|
|
|
|
|
|
#endif // SOCKETIO_HPP
|