TeensyNanoExoCode
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BleMessage Class Reference

#include <BleMessage.h>

Public Member Functions

 BleMessage ()
 Construct a new Ble Message object.
 
void clear ()
 Set the message back to its defaults.
 
void copy (BleMessage *n)
 Sets its values equal to another BleMessage.
 

Static Public Member Functions

static void print (BleMessage msg)
 Print the message values to the Serial monitor.
 
static int matching (BleMessage msg1, BleMessage msg2)
 Check if two messages are matching.
 

Public Attributes

char command = 0
 
int expecting = 0
 
bool is_complete = false
 
float data [_max_size]
 

Constructor & Destructor Documentation

◆ BleMessage()

BleMessage::BleMessage ( )

Construct a new Ble Message object.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void BleMessage::clear ( )

Set the message back to its defaults.

◆ copy()

void BleMessage::copy ( BleMessage n)

Sets its values equal to another BleMessage.

Parameters
nMessage to copy

◆ matching()

int BleMessage::matching ( BleMessage  msg1,
BleMessage  msg2 
)
static

Check if two messages are matching.

Parameters
msg1One of the messages to check
msg2One of the messages to check
Returns
int One if the messages match, Zero if they dont

◆ print()

void BleMessage::print ( BleMessage  msg)
static

Print the message values to the Serial monitor.

Parameters
msgMessage to print

Member Data Documentation

◆ command

char BleMessage::command = 0

◆ data

float BleMessage::data[_max_size]

◆ expecting

int BleMessage::expecting = 0

◆ is_complete

bool BleMessage::is_complete = false

The documentation for this class was generated from the following files: