updated the readme
This commit is contained in:
@@ -10,11 +10,11 @@ class BluetoothSerialMessage : public SerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS
|
||||
*/
|
||||
BluetoothSerialMessage(BluetoothSerial *serial);
|
||||
|
||||
void Init(uint32_t baudRate) override{this->Init();}
|
||||
void Init(uint32_t baudRate) override{this->Init("BluetoothMessage");}
|
||||
/**
|
||||
* @brief Initialize the BluetoothSerialMessage object
|
||||
*/
|
||||
void Init();
|
||||
void Init(const char * bluetoothName);
|
||||
|
||||
/**
|
||||
* @brief prints the args array to the serial monitor
|
||||
@@ -30,6 +30,10 @@ class BluetoothSerialMessage : public SerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS
|
||||
|
||||
BluetoothSerial *serial;
|
||||
};
|
||||
template <uint32_t SERIAL_BUFFER_SIZE, uint32_t MAX_ARGS>
|
||||
void BluetoothSerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS>::Init(const char * bluetoothName){
|
||||
serial->begin(bluetoothName);
|
||||
}
|
||||
|
||||
template <uint32_t SERIAL_BUFFER_SIZE, uint32_t MAX_ARGS>
|
||||
char BluetoothSerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS>::getChar(){
|
||||
@@ -46,11 +50,6 @@ BluetoothSerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS>::BluetoothSerialMessage(Blu
|
||||
this->serial = serial;
|
||||
}
|
||||
|
||||
template <uint32_t SERIAL_BUFFER_SIZE, uint32_t MAX_ARGS>
|
||||
void BluetoothSerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS>::Init(){
|
||||
serial->begin("MiniBot");
|
||||
}
|
||||
|
||||
template <uint32_t SERIAL_BUFFER_SIZE, uint32_t MAX_ARGS>
|
||||
void BluetoothSerialMessage<SERIAL_BUFFER_SIZE, MAX_ARGS>::PrintArgs(){
|
||||
serial->print("Current number of args: ");
|
||||
|
||||
Reference in New Issue
Block a user