I think there is a problem. How do I find the ttn address to put in this line:
sendCmd("mac set devaddr AABBCCDD"); // Set own address
EDIT: The problem seems to be that it never gets through the waitForResponse() function. so lora.available is never true...