PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
#include <src/PlusDataCollection/Clarius/ClariusBLE.h>
Public Member Functions | |
bool | AwaitWifiInfoReady () |
ClariusBLE () | |
PlusStatus | CloseConnection () |
PlusStatus | ConfigureWifiAP () |
PlusStatus | ConfigureWifiLAN (std::string ssid, std::string password) |
PlusStatus | Connect () |
PlusStatus | Disconnect () |
PlusStatus | FindBySerial (std::string serialNum) |
std::string | GetLastError () |
std::pair< PlusStatus, ClariusWifiInfo > | GetWifiInfo () |
bool | IsProbeConnected () |
bool | IsProbePowered () |
PlusStatus | ReadWifiInfo () |
PlusStatus | RequestProbeOff () |
PlusStatus | RequestProbeOn () |
std::vector< std::string > | RetrieveFoundProbeIds () |
~ClariusBLE () | |
Definition at line 72 of file ClariusBLE.h.
ClariusBLE::ClariusBLE | ( | ) |
Definition at line 722 of file ClariusBLE.cxx.
ClariusBLE::~ClariusBLE | ( | ) |
Definition at line 728 of file ClariusBLE.cxx.
bool ClariusBLE::AwaitWifiInfoReady | ( | ) |
Synchronously wait for probe wifi information to be available. Useful for blocking execution while the probe is booting.
WARNING: This function can block for ~10 seconds, and should therefore be called on a thread.
Definition at line 972 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::CloseConnection | ( | ) |
Close the BLE connection.
Definition at line 844 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::ConfigureWifiAP | ( | ) |
Configure the probe wifi to access-point mode, where the user will directly connect to the probe's wifi network (DIRECT-**SN** SSID).
Definition at line 1045 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::ConfigureWifiLAN | ( | std::string | ssid, |
std::string | password | ||
) |
Configure the probe wifi to LAN mode, where the probe will connect to a local wifi network
ssid | |
password |
Definition at line 1083 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::Connect | ( | ) |
Connect to probe found by FindBySerial
Definition at line 776 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::Disconnect | ( | ) |
Disconnect from the currently connected probe BLE
Definition at line 873 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::FindBySerial | ( | std::string | serialNum | ) |
Search for probe BLE connection by serial number
Definition at line 735 of file ClariusBLE.cxx.
std::string ClariusBLE::GetLastError | ( | ) |
Get the last error message
Definition at line 1145 of file ClariusBLE.cxx.
std::pair< PlusStatus, ClariusWifiInfo > ClariusBLE::GetWifiInfo | ( | ) |
Get the wifi information to connect to the probe over, this is only useful when the probe is configured in ACCESS_POINT mode
Definition at line 1133 of file ClariusBLE.cxx.
bool ClariusBLE::IsProbeConnected | ( | ) |
Is there a currently connected probe?
Definition at line 770 of file ClariusBLE.cxx.
bool ClariusBLE::IsProbePowered | ( | ) |
Check if currently connected probe is powered
Definition at line 889 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::ReadWifiInfo | ( | ) |
Read the current wifi state from the BLE characteristic.
Definition at line 1018 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::RequestProbeOff | ( | ) |
Initiate the power off process for the currently connected probe
Definition at line 929 of file ClariusBLE.cxx.
PlusStatus ClariusBLE::RequestProbeOn | ( | ) |
Initiate the power on process for the currently connected probe
Definition at line 895 of file ClariusBLE.cxx.
std::vector< std::string > ClariusBLE::RetrieveFoundProbeIds | ( | ) |
If FindBySerial returns false, this method can be used to retrieve a list of serial numbers for available Clarius probes
Definition at line 764 of file ClariusBLE.cxx.