Pages

samedi 22 avril 2023

Enregistrer un EndDevice Lora-E5 Grove sur TTN

 Un bref article avec support vidéo concernant la configuration d'un module Lora-E5 GROVE sur la plateforme The Things Network.

Tout est là :


Le code pour communiquer avec le module via des commandes AT :

#include <SoftwareSerial.h>

SoftwareSerial lora(6, 7);

void setup() {

  Serial.begin(9600);
  lora.begin(9600);
  delay(2000);
}

void loop() {

  if (lora.available()) {
    int inByte = lora.read();
    Serial.write(inByte);
  }

  if (Serial.available()) {
    int inByte = Serial.read();
    lora.write(inByte);
  }
}