📄 class_bluetooth_a_p_i_listener.tex
字号:
\hypertarget{class_bluetooth_a_p_i_listener}{\section{BluetoothAPIListener Class Reference}\label{class_bluetooth_a_p_i_listener}\index{BluetoothAPIListener@{BluetoothAPIListener}}}{\tt \#include $<$Bluetooth.h$>$}\subsection*{Public Member Functions}\begin{CompactItemize}\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_7b90a42abeaf780c7e2b2099507c8243}{devicesDiscoverFinished} (vector$<$ \hyperlink{struct_b_t_device_data}{BTDeviceData} $>$ \&discoveredDeviceList)=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_fdc7e53398adf85bf53cda8e37d9f07a}{servicesDiscoverFinished} (vector$<$ \hyperlink{struct_b_t_device_data}{BTDeviceData} $>$ \&discoveredServiceList)=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_453bdfaf3efa51194d4fcb4fae94d6dc}{serverConnected} ()=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_bad86491dc6f6b96391864c4ea7c5f04}{serverDisconnected} ()=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_5eecf39553da3631388d8bba8b58a961}{clientConnected} ()=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_ebdca0df5b2fa7a147a11ce074480491}{clientDisconnected} ()=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_9c2e60cf5b1b04382c03c333e6bcd6dc}{messageReceived} (char $\ast$message)=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_35acc1873da5737f634ac1f80885732f}{messageSent} ()=0\item virtual void \hyperlink{class_bluetooth_a_p_i_listener_574163872bbf1a4a2c584acc4d6457d5}{errorOcurred} (int err)=0\end{CompactItemize}\subsection{Detailed Description}\hyperlink{class_bluetooth_a_p_i_listener}{BluetoothAPIListener} Inteface to listen the \hyperlink{class_bluetooth_a_p_i}{BluetoothAPI} and notify important chages \subsection{Member Function Documentation}\hypertarget{class_bluetooth_a_p_i_listener_5eecf39553da3631388d8bba8b58a961}{\index{BluetoothAPIListener@{BluetoothAPIListener}!clientConnected@{clientConnected}}\index{clientConnected@{clientConnected}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{clientConnected}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::clientConnected ()\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_5eecf39553da3631388d8bba8b58a961}Virtual callback to notify that the device in use achieved to connect as a client \hypertarget{class_bluetooth_a_p_i_listener_ebdca0df5b2fa7a147a11ce074480491}{\index{BluetoothAPIListener@{BluetoothAPIListener}!clientDisconnected@{clientDisconnected}}\index{clientDisconnected@{clientDisconnected}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{clientDisconnected}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::clientDisconnected ()\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_ebdca0df5b2fa7a147a11ce074480491}Virtual callback to notify that the device in use disconnected, or was disconnected, as a client \hypertarget{class_bluetooth_a_p_i_listener_7b90a42abeaf780c7e2b2099507c8243}{\index{BluetoothAPIListener@{BluetoothAPIListener}!devicesDiscoverFinished@{devicesDiscoverFinished}}\index{devicesDiscoverFinished@{devicesDiscoverFinished}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{devicesDiscoverFinished}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::devicesDiscoverFinished (vector$<$ {\bf BTDeviceData} $>$ \& {\em discoveredDeviceList})\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_7b90a42abeaf780c7e2b2099507c8243}Virtual callback to notify the end of the search for devices and pass a vector data with the devices on the bluetooth network \begin{Desc}\item[Parameters:]\begin{description}\item[{\em discoveredDeviceList,a}]vetor to be updated with data of devices on the network \end{description}\end{Desc}\hypertarget{class_bluetooth_a_p_i_listener_574163872bbf1a4a2c584acc4d6457d5}{\index{BluetoothAPIListener@{BluetoothAPIListener}!errorOcurred@{errorOcurred}}\index{errorOcurred@{errorOcurred}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{errorOcurred}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::errorOcurred (int {\em err})\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_574163872bbf1a4a2c584acc4d6457d5}Virtual callback to notify an error ocurred \begin{Desc}\item[Parameters:]\begin{description}\item[{\em err,variable}]with the value of error occurred \end{description}\end{Desc}\hypertarget{class_bluetooth_a_p_i_listener_9c2e60cf5b1b04382c03c333e6bcd6dc}{\index{BluetoothAPIListener@{BluetoothAPIListener}!messageReceived@{messageReceived}}\index{messageReceived@{messageReceived}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{messageReceived}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::messageReceived (char $\ast$ {\em message})\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_9c2e60cf5b1b04382c03c333e6bcd6dc}Virtual callback to notify that the device in use recieved a message and pass this message \begin{Desc}\item[Parameters:]\begin{description}\item[{\em message,message}]received by the device in use \end{description}\end{Desc}\hypertarget{class_bluetooth_a_p_i_listener_35acc1873da5737f634ac1f80885732f}{\index{BluetoothAPIListener@{BluetoothAPIListener}!messageSent@{messageSent}}\index{messageSent@{messageSent}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{messageSent}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::messageSent ()\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_35acc1873da5737f634ac1f80885732f}Virtual callback to notify that the device in use sent a message \hypertarget{class_bluetooth_a_p_i_listener_453bdfaf3efa51194d4fcb4fae94d6dc}{\index{BluetoothAPIListener@{BluetoothAPIListener}!serverConnected@{serverConnected}}\index{serverConnected@{serverConnected}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{serverConnected}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::serverConnected ()\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_453bdfaf3efa51194d4fcb4fae94d6dc}Virtual callback to notify that the device in use achieved to connect as a server \hypertarget{class_bluetooth_a_p_i_listener_bad86491dc6f6b96391864c4ea7c5f04}{\index{BluetoothAPIListener@{BluetoothAPIListener}!serverDisconnected@{serverDisconnected}}\index{serverDisconnected@{serverDisconnected}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{serverDisconnected}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::serverDisconnected ()\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_bad86491dc6f6b96391864c4ea7c5f04}Virtual callback to notify that the device in use disconnected, or was disconnected, as a server \hypertarget{class_bluetooth_a_p_i_listener_fdc7e53398adf85bf53cda8e37d9f07a}{\index{BluetoothAPIListener@{BluetoothAPIListener}!servicesDiscoverFinished@{servicesDiscoverFinished}}\index{servicesDiscoverFinished@{servicesDiscoverFinished}!BluetoothAPIListener@{BluetoothAPIListener}}\subsubsection[{servicesDiscoverFinished}]{\setlength{\rightskip}{0pt plus 5cm}virtual void BluetoothAPIListener::servicesDiscoverFinished (vector$<$ {\bf BTDeviceData} $>$ \& {\em discoveredServiceList})\hspace{0.3cm}{\tt \mbox{[}pure virtual\mbox{]}}}}\label{class_bluetooth_a_p_i_listener_fdc7e53398adf85bf53cda8e37d9f07a}Virtual callback to notify the end of the search for a specific service on the devices found and pass a vector data with the devices with that service \begin{Desc}\item[Parameters:]\begin{description}\item[{\em discoveredServiceList,a}]vetor to be updated with data of devices with the desired service \end{description}\end{Desc}The documentation for this class was generated from the following file:\begin{CompactItemize}\item inc/\hyperlink{_bluetooth_8h}{Bluetooth.h}\end{CompactItemize}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -