eBoard ①⑧⑨
Written for SIA 2017/2018
eagle_Bluetooth.h File Reference

this file contains cool stuff to access the bluetooth interface More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char readVal (char oF='.')
 [BLUETOOTH] reads a single value from bluetooth if available! More...
 
bool checkOverflow (void)
 [BLUETOOTH] checks if theres a lack of Data! More...
 
template<typename T >
void writeVal (const T &val)
 [BLUETOOTH] writes Data to bluetooth More...
 
bool isConnected (void)
 [BLUETOOTH] this will check if the HC-05 is paired More...
 

Detailed Description

this file contains cool stuff to access the bluetooth interface

Last Updated:

Version
3.2.0a

Definition in file eagle_Bluetooth.h.

Function Documentation

◆ checkOverflow()

bool checkOverflow ( void  )
inline

[BLUETOOTH] checks if theres a lack of Data!

Note
if this happens you should consider to lower the sending or faster the receiving rate ;)
Returns
true if the overflow has happened
false if used on MEGA with default pins as there is no hardware based buffer control :/
false if there is no overflow (recognized)

◆ isConnected()

bool isConnected ( void  )
inline

[BLUETOOTH] this will check if the HC-05 is paired

Returns
if PIN_BLUETOOTH_STATE != PIN_BLUETOOTH_RX:
    true if the HC-05 is paired
    false if the HC-05 is disconnected
if PIN_BLUETOOTH_STATE == PIN_BLUETOOTH_RX
    true in any case - because we don't know ^^

◆ readVal()

char readVal ( char  oF = '.')
inline

[BLUETOOTH] reads a single value from bluetooth if available!

Parameters
oFthe character returned on failure
Returns
the character read. Returns {oF} on failure!

◆ writeVal()

template<typename T >
void writeVal ( const T &  val)
inline

[BLUETOOTH] writes Data to bluetooth

Parameters
valThis is the data to be written. Can be int, str etc...