Tapatalk

thethingsnetwork class

thethingsnetwork class

18

PostFeb 12, 2018#1

I am trying to define a thethingsnetwork class as

thethingsnetwork ttn(Stream &modemStream, Stream &debugStream, ttn_fp_t fp)

Example code is found on 
https://www.thethingsnetwork.org/docs/d ... start.html

*****small snippet below*********
#define loraSerial Serial1
#define debugSerial Serial

// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
#define freqPlan REPLACE_ME
   
TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
******end snippet********

But I relealized Serial 1 is only available Arduino Mega and Arduino Leonardo and may be few other boards. 

In that case how can I use thethingsnetwork class on Talk2WhisperNode ?
Appreciate any pointers.

1885
1885

PostMar 27, 2018#2

Hi Nashdwaj,

We do not support the Things Network Library. I would suggest open a topic at the TTN Network Forum. The Whisper Node is basically an ATMega328p + RFM95 (Semtech 1276) Radio from the TTN perspective.

Regards