BayEOS-Arduino
1.8.0_0.0.4
|
Public Member Functions | |
BayBluetooth (HardwareSerial &serial=Serial) | |
void | begin (long baud, const char *name) |
void | begin (long baud, int eeprom_offset, uint8_t start_byte) |
void | inquirable (void) |
int | available (void) |
Public Member Functions inherited from BaySerial | |
BaySerial (HardwareSerial &serial, int timeout=1000) | |
int | available (void) |
int | i_available (void) |
void | begin (long baud) |
void | flush (void) |
void | end (void) |
int | read (void) |
size_t | write (uint8_t c) |
Public Member Functions inherited from BaySerialInterface | |
uint8_t | sendPayload (void) |
void | sendFrame (void) |
uint8_t | readIntoPayload (int timeout=5000) |
void | sendTXBreak (void) |
Public Member Functions inherited from BayEOS | |
BayEOS (void) | |
uint8_t | sendError (const String &s) |
uint8_t | sendMessage (const String &s) |
void | startFrame (uint8_t type) |
void | startOriginFrame (const String &o, uint8_t routed=0) |
void | startDataFrame (uint8_t subtype=BayEOS_Float32le, uint8_t checksum=0) |
void | startDataFrameWithOrigin (uint8_t subtype, const String &o, uint8_t checksum=0, uint8_t routed=0) |
uint8_t | addChannelValue (float v, uint8_t channel_number=0) |
uint8_t | addChannelValue (double v, uint8_t channel_number=0) |
uint8_t | addChannelValue (long v, uint8_t channel_number=0) |
uint8_t | addChannelValue (unsigned long v, uint8_t channel_number=0) |
uint8_t | addChannelValue (int v, uint8_t channel_number=0) |
uint8_t | addChannelValue (unsigned int v, uint8_t channel_number=0) |
uint8_t | addChannelValue (int8_t v, uint8_t channel_number=0) |
uint8_t | addChannelValue (uint8_t v, uint8_t channel_number=0) |
uint8_t | addChannelValue (float v, const char *channel_label) |
uint8_t | addChannelValue (double v, const char *channel_label) |
uint8_t | addChannelValue (long v, const char *channel_label) |
uint8_t | addChannelValue (unsigned long v, const char *channel_label) |
uint8_t | addChannelValue (int v, const char *channel_label) |
uint8_t | addChannelValue (unsigned int v, const char *channel_label) |
uint8_t | addChannelValue (int8_t v, const char *channel_label) |
uint8_t | addChannelValue (uint8_t v, const char *channel_label) |
uint8_t | addChecksum (void) |
uint8_t | validateChecksum (void) |
void | startRoutedFrame (uint16_t sourceMyID, uint16_t sourcePANID, uint8_t rssi=0) |
void | startDelayedFrame (unsigned long delay) |
void | startTimestampFrame (unsigned long timestamp) |
void | startCommand (uint8_t cmd_api) |
void | startCommandResponse (uint8_t cmd_api) |
uint8_t | addToPayload (uint8_t b) |
uint8_t | addToPayload (const void *p, uint8_t length) |
uint8_t | addToPayload (const uint8_t *c) |
uint8_t | addToPayload (const String &s) |
uint8_t | addToPayload (float f) |
uint8_t | addToPayload (unsigned long l) |
uint8_t | addToPayload (long l) |
uint8_t | addToPayload (int w) |
uint8_t | addToPayload (uint16_t w) |
uint8_t | getPayloadBytesLeft (void) const |
uint8_t | getPayloadLength (void) const |
uint8_t | getPacketLength (void) const |
const uint8_t * | getPayload (void) const |
uint8_t | getPayload (uint8_t index) const |
uint8_t | sendOrBuffer (void) |
uint8_t | sendFromBuffer (void) |
uint8_t | writeToBuffer (void) |
uint8_t | readFromBuffer (void) |
uint8_t | readBinaryFromBuffer (unsigned long pos) |
uint8_t | readBinaryFromBuffer (unsigned long pos, unsigned long end, unsigned long vpos) |
void | setBuffer (BayEOSBuffer &buffer, uint16_t max_skip=0) |
Additional Inherited Members | |
Public Attributes inherited from BayEOS | |
uint8_t | _payload [BayEOS_MAX_PAYLOAD] |
uint8_t | _next |
uint8_t | _success |
uint8_t | _failure_counter |
uint16_t | _max_skip |
uint16_t | _skip_counter |
BayEOSBuffer * | _buffer |
Protected Member Functions inherited from BaySerialInterface | |
uint8_t | readPacket (uint8_t type=API_DATA) |
void | sendByte (uint8_t b, bool escape) |
uint8_t | readByte (int timeout, bool escape) |
void | sendAck (uint8_t b) |
Protected Attributes inherited from BaySerial | |
HardwareSerial * | _serial |
Protected Attributes inherited from BaySerialInterface | |
bool | _escape |
bool | _read_timeout |
int | _timeout |
uint8_t | _length |
uint8_t | _checksumTotal |
uint8_t | _api |
uint8_t | _ack |
uint8_t | _pos |
uint8_t | _break |
Definition at line 30 of file BayBluetooth.h.
BayBluetooth::BayBluetooth | ( | HardwareSerial & | serial = Serial | ) |
Constructor
Definition at line 2 of file BayBluetooth.cpp.
|
inlinevirtual |
Has RX-data to read Has to be overwritten by implementation
Reimplemented from BayEOS.
Definition at line 50 of file BayBluetooth.h.
void BayBluetooth::begin | ( | long | baud, |
const char * | name | ||
) |
Init BT-Module as slave with baud and name
Definition at line 14 of file BayBluetooth.cpp.
void BayBluetooth::begin | ( | long | baud, |
int | eeprom_offset, | ||
uint8_t | start_byte | ||
) |
Init BT-Module as slave with baud and name read from EEPROM
Definition at line 25 of file BayBluetooth.cpp.
void BayBluetooth::inquirable | ( | void | ) |
make BT-Module inquirable
Definition at line 6 of file BayBluetooth.cpp.