 }
 
 int onRequest(uint8_t type, enum Endpoint model, int* headerlen,
-              int* datalen, data_callback* data_callback) {
+              int* datalen, data_callback* data_callback)
+{
+    Serial.println(header[0]);
     if (type != VarTypes82::VarString) {
+        Serial.print(type);
+        Serial.println("Received request for invalid data type");
         return -1; // Can only return strings
     }
 

    Serial.println("Sending: " + hello);

    return 0;
}
uint8_t header[16];
uint8_t data[MAXDATALEN];

// Forward declaration of onRequest() and onReceived() functions
int onReceived(uint8_t type, enum Endpoint model, int datalen);
int onRequest(uint8_t type, enum Endpoint model, int* headerlen,
              int* datalen, data_callback* data_callback);

void setup() {
    Serial.begin(9600);
    cbl.setLines(lineRed, lineWhite);
    cbl.resetLines();
    //cbl.setVerbosity(true, &Serial);      // Comment this in for message information
    cbl.setupCallbacks(header, data, MAXDATALEN, onReceived, onRequest);
}

