eBoard ๐Ÿ‰  โ‘ โ‘งโ‘จ
Written for SIA 2017/2018
eagle_impl::RB14Scan Struct Reference

[COPY&PASTE] [BLUETOOTH] This is the RB14Scan ghost struct :D More...

#include <eBoard.h>

Public Member Functions

 RB14Scan (void)
 The constructor. More...
 
int raw (optVAL_t)
 this will check for connection status [will return true if pin not connected] More...
 
char channel (optVAL_t)
 will return the next char received by the module. A 64 byte Serial buffer is included! More...
 
void write (const char *const val)
 this will write a constant string to the output More...
 

Detailed Description

[COPY&PASTE] [BLUETOOTH] This is the RB14Scan ghost struct :D

Author
EagleoutIce
Precondition
to use this class on UNO:
//#include <SoftwareSerial.h> //With EBOARD_GUESSPATH this is NOT needed anymore :D
#define EBOARD_BLUETOOTH 0x1


If you don't reconfigure the TX and RX on MEGA:
#define EBOARD_BLUETOOTH 0x1

[COPY&PASTE] [BLUETOOTH] You can use this class like this on UNO:

//#include <SoftwareSerial.h> //With EBOARD_GUESSPATH this is NOT needed anymore :D
#define EBOARD_BLUETOOTH 0x1
//#include <SPI.h> //With EBOARD_GUESSPATH this is NOT needed anymore :D
#include "/home/eagleoutice/Dokumente/proj/_sia/src/eBoard.h"
RB14Scan remote;
int main() {
int x = remote.channel(0); //stores value, if available, in 'x'
}

Definition at line 3323 of file eBoard.h.

Constructor & Destructor Documentation

◆ RB14Scan()

eagle_impl::RB14Scan::RB14Scan ( void  )
inline

The constructor.

Member Function Documentation

◆ channel()

char eagle_impl::RB14Scan::channel ( optVAL_t  )
inline

will return the next char received by the module. A 64 byte Serial buffer is included!

Returns
the next character in queue

◆ raw()

int eagle_impl::RB14Scan::raw ( optVAL_t  )
inline

this will check for connection status [will return true if pin not connected]

Returns
the state of the connection [1 if paired or unknown; 0 if disconnected]

◆ write()

void eagle_impl::RB14Scan::write ( const char *const  val)
inline

this will write a constant string to the output

Note
this is a new function :D

The documentation for this struct was generated from the following file: