 #define CSN_PIN                 8 // Radio chip select pin
 #define INT_PIN                 2 // Radio interrupt pin
 
-// Serial protocol
-#define MAX_SERIAL_LINE_LEN     20 // Null terminator is already accounted for
-
 // Firmware information
 #define ENDPOINT_ID_LOCATION    0x000 // The address in EEPROM to store the ID
 
 
 void initRadio(void);
 uint8_t detectClearestChannel(void);
-// void networkRead(void);
 void radioInterrupt(void);
 void serialRead(void);
-void processSerialCommand(char message[]);
+void processSerialCommand(String message);
 void setRGB(uint8_t red, uint8_t green, uint8_t blue);
 void setEndpointID(uint8_t id);
 void printWelcomeMessage(void);

 */
void serialRead(void) {

    static char buffer[MAX_SERIAL_LINE_LEN + 1];
    static int index = 0;

    if (Serial.available()) {

        buffer[index] = Serial.read();

        if (buffer[index] == '\r' ||  index == MAX_SERIAL_LINE_LEN) {
            buffer[index] = '\0'; // Terminate the message
            index = 0; // Reset to the beginning of the buffer
            processSerialCommand(buffer);
        } else {
            index++;
        }
    }
}



    // Initialize serial console
    Serial.begin(115200);
    Serial.setTimeout(-1);
    printWelcomeMessage();

    // Start the radio
