C4EV3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ev3_bluetooth.h
Go to the documentation of this file.
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4 
5 #ifndef ev3_bluetooth_h
6 #define ev3_bluetooth_h
7 
8 #define BLUETOOTH_ADDRESS_LENGTH 18 // 00:00:00:00:00:00 + null terminator
9 #define MAX_BLUETOOTH_NAME_LENGTH 128
10 
12 
19 BluetoothConnectionHandle ConnectTo(char * nameOrAddress);
20 
26 BluetoothConnectionHandle WaitConnection();
27 
28 void SendStringTo(BluetoothConnectionHandle to, char * str);
29 
41 int ReceiveStringFrom(BluetoothConnectionHandle from, char * buffer, int bufferLength);
42 
43 void DisconnectFrom(BluetoothConnectionHandle from);
44 
45 #endif // ev3_bluetooth_h
46 
47 #ifdef __cplusplus
48 }
49 #endif
int BluetoothConnectionHandle
Definition: ev3_bluetooth.h:11
BluetoothConnectionHandle ConnectTo(char *nameOrAddress)
BluetoothConnectionHandle WaitConnection()
void DisconnectFrom(BluetoothConnectionHandle from)
void SendStringTo(BluetoothConnectionHandle to, char *str)
int ReceiveStringFrom(BluetoothConnectionHandle from, char *buffer, int bufferLength)