Utility class to automate the Glasses exclusive connection process. More...
#include <TiltFiveNative.hpp>
Public Member Functions | |
auto | glasses () -> Glasses & |
Obtain a reference to the wrapped tiltfive::Glasses object. More... | |
auto | awaitConnection () -> Result< void > |
Block until a connection is established. More... | |
auto | awaitConnection (const std::chrono::milliseconds timeout) -> Result< void > |
Block until a connection is established or timed out. More... | |
auto | consumeLastAsyncError () -> std::error_code |
Obtain and consume the last asynchronous error. More... | |
Utility class to automate the Glasses exclusive connection process.
See Using GlassesConnectionHelper for usage.
Definition at line 764 of file TiltFiveNative.hpp.
|
inline |
Block until a connection is established.
Definition at line 850 of file TiltFiveNative.hpp.
|
inline |
Block until a connection is established or timed out.
[in] | timeout | - Time to wait for connection before timeout |
Definition at line 871 of file TiltFiveNative.hpp.
|
inline |
Obtain and consume the last asynchronous error.
The connection process may produce errors asynchronously which can be detected by calling this.
Definition at line 901 of file TiltFiveNative.hpp.
|
inline |
Obtain a reference to the wrapped tiltfive::Glasses object.
Definition at line 845 of file TiltFiveNative.hpp.