First of all, I would like to thank for the post because it has helped me a lot during my first steps with LoRaWAN and my BSFrance LoRa32u4 II module.
On the other hand, I am a little frustrated with the progress since I cannot get my device to work properly and that is why I would greatly appreciate it if someone could help me.
The idea I had is very simple, to be able to send the temperature and humidity data with the DHT22 sensor to TTN. The BSFrancee board version that I have is 1.3.
First of all I started with the LMIC library but from what I saw and have read in several posts, it is a problem since it takes up a lot of memory and the microcontroller does not have much memory (32KB). Therefore, for future projects and with the idea of expanding the project with more sensors it would surely be a problem.
On the other hand, I have used the TinyLora library that is presented in the Adafruit tutorial and I have seen that the memory used was much less, around 10KB, so it is ideal.
However, in TTN I only receive the first message. I have to disconnect the node and reconnect it to receive a new message, but the same thing happens, messages are not send one after the other. In the serial port it remains in the print “Sending LoRa Data …”, so I understand that there is a problem in the code in the following part. I add the lines of code in this part (although it can be seen in the sketch “tinylora_dht22.ino” from the TinyLora library):
" Serial.println(“Sending LoRa Data…”);
lora.sendData(loraData, sizeof(loraData), lora.frameCounter);
Serial.print("Frame Counter: “);Serial.println(lora.frameCounter);
I would greatly appreciate your help .