diff --git a/examples/ttn-abp/ttn-abp.ino b/examples/ttn-abp/ttn-abp.ino index bedd2c7a..7c3d4156 100644 --- a/examples/ttn-abp/ttn-abp.ino +++ b/examples/ttn-abp/ttn-abp.ino @@ -210,10 +210,10 @@ void setup() { uint8_t nwkskey[sizeof(NWKSKEY)]; memcpy_P(appskey, APPSKEY, sizeof(APPSKEY)); memcpy_P(nwkskey, NWKSKEY, sizeof(NWKSKEY)); - LMIC_setSession (0x1, DEVADDR, nwkskey, appskey); + LMIC_setSession (0x13, DEVADDR, nwkskey, appskey); #else // If not running an AVR with PROGMEM, just use the arrays directly - LMIC_setSession (0x1, DEVADDR, NWKSKEY, APPSKEY); + LMIC_setSession (0x13, DEVADDR, NWKSKEY, APPSKEY); #endif #if defined(CFG_eu868) diff --git a/examples/ttn-otaa/ttn-otaa.ino b/examples/ttn-otaa/ttn-otaa.ino index acf3f4ed..186efae6 100644 --- a/examples/ttn-otaa/ttn-otaa.ino +++ b/examples/ttn-otaa/ttn-otaa.ino @@ -147,8 +147,8 @@ void onEvent (ev_t ev) { if (LMIC.txrxFlags & TXRX_ACK) Serial.println(F("Received ack")); if (LMIC.dataLen) { - Serial.println(F("Received ")); - Serial.println(LMIC.dataLen); + Serial.print(F("Received ")); + Serial.print(LMIC.dataLen); Serial.println(F(" bytes of payload")); } // Schedule next transmission