Heltec wireless stick & DRAGINO

Hello everybody,

I am trying to configure the communication between Heltec Wireless Stick & Dragino Lg01-N but I cannot produce a script on Arduino Ide to be able to send a single number. I entered all the correct information in Dragino but I don’t know how to do the script on the Wireless Stick. Have any of you tried this data sending?
How can I enter the information of:

  • channel id
  • node id
    My test script is:

#include “heltec.h”
#define BAND 433E6 //you can set band here directly,e.g. 868E6,915E6

int counter = 0;

void setup()
{
Heltec.begin(true /DisplayEnable Enable/, true /Heltec.LoRa Disable/, true /Serial Enable/, true /PABOOST Enable/, BAND /long BAND/);
}

void loop()
{
Serial.print("Sending packet: ");
Serial.println(counter);
LoRa.beginPacket();
LoRa.setTxPower(14,RF_PACONFIG_PASELECT_PABOOST);
LoRa.print("hello ");
LoRa.print(counter);
LoRa.endPacket();
counter++;
}

Thanks a lot.

Marco

Please refer to: https://heltec-automation-docs.readthedocs.io/en/latest/esp32/lorawan/index.html