Dear developer
I am trying to access the TTN-IoT , but the following error is shown.
C:\Users\xxx\Documents\Arduino\libraries\libraries\TTN_esp32\src\lmic\hal\getpinmap_thisboard.cpp:74:64: note: #pragma message: Board not supported – use an explicit pinmap
#pragma message(“Board not supported – use an explicit pinmap”)
18:20:26.246 -> rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
18:20:26.246 -> configsip: 0, SPIWP:0xee
18:20:26.246 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
18:20:26.246 -> mode:DIO, clock div:2
18:20:26.246 -> load:0x3fff0018,len:4
18:20:26.246 -> load:0x3fff001c,len:1216
18:20:26.246 -> ho 0 tail 12 room 4
18:20:26.246 -> load:0x40078000,len:9720
18:20:26.246 -> ho 0 tail 12 room 4
18:20:26.246 -> load:0x40080400,len:6364
18:20:26.246 -> entry 0x400806b8
18:20:26.386 -> Starting
18:20:26.386 -> FAILURE
18:20:26.386 -> C:\Users\xxx\Documents\Arduino\libraries\libraries\TTN_esp32\src\lmic\hal\hal.cpp:393
- Has anybody else had a simillar problem?
#include <TTN_esp32.h>
#include <TTN_CayenneLPP.h>
const char *devEui = “33333…”; //changer avec de devEui TTN
const char *appEui = “aaaaaaaaa…”; // changer avec le appEui TTN
const char *appKey = “ssssssssssssss…”; // changer avec le appKey TTN
TTN_esp32 ttn;
TTN_CayenneLPP lpp;
void message(const uint8_t *payload, size_t size, int rssi)
{
Serial.println("-- MESSAGE");
Serial.print(“Received " + String(size) + " bytes RSSI=” + String(rssi) + “db”);
for (int i = 0; i < size; i++)
{
Serial.print(" " + String(payload[i]));
//Serial.write(payload[i]);
}
Serial.println();
}
void setup() {
Serial.begin(115200);
Serial.println(“Starting”);
ttn.begin();
ttn.onMessage(message);// declare callback function when is downlink from server
ttn.join(devEui, appEui, appKey);
Serial.print(“joining TTN “);
while (!ttn.joined()) {
Serial.print(”.”);
delay(500);
}
Serial.println("\njoined !");
ttn.showStatus();
}
void loop() {
static float nb = 18.2;
nb += 0.1;
lpp.reset();
lpp.addTemperature(1, nb);
if (ttn.sendBytes(lpp.getBuffer(), lpp.getSize())) {
Serial.printf(“Temp: %f TTN_CayenneLPP: %d %x %02X%02X\n”, nb, lpp.getBuffer()[0], lpp.getBuffer()[1], lpp.getBuffer()[2], lpp.getBuffer()[3]);
}
delay(10000);
Serial.print(":");
}
Best regards