Closed navinyate closed 7 years ago
@navinyate .writeLatLng
already automatically shortens to 6 decimals, there is no need to do it manually. I can also only recommend to use the LoraMessage
class, it makes the handling of the resulting buffer much easier.
Closing this.
I tried using Lora-serialisation to send GPD data from Node to TTN, but when I use
encoder.writeLatLng(-33.905024, 151.26648);
data transmits but when I useencoder.writeLatLng((gps.location.lat(), 6), (gps.location.lng(), 6));
data dosen't transmits. am using `include
byte mydata[12];
void setup() { Serial.begin(9600); ss.begin(9600); LoraEncoder encoder(mydata);
Please help me.