updated the readme

This commit is contained in:
2024-08-07 09:17:41 -04:00
parent b5d9c9d666
commit fa9b73f017
3 changed files with 35 additions and 11 deletions

View File

@@ -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: ");