Continuing the discussion from How to Transmit/Receive Multiple Data with RA-02 LoRa SOLVED:
Please let us know the library.
Continuing the discussion from How to Transmit/Receive Multiple Data with RA-02 LoRa SOLVED:
Please let us know the library.
for RA-02 LoRa point to point communications probably used the Arduino LoRa library
if you look at File>Examples>LoRa you will find code for a simple LoRaReceiver and LoRaSender which are a good start
for a more complex example have a look at need-advice-on-a-home-project which transmits/receives a structure
Edit: what host microcontroller are you thinking of using?
the RA-02 uses 3.3V logic therefore use a microcontroller which uses 3.3V logic, e.g. ESP32, RP2040, 3.3V pro micro, 3.3V pro mini, etc
I am using below line to send array.
void send_data() {
LoRa.beginPacket();
for (int i = 0; i < n; i++) {
LoRa.write(A[i]);
}
LoRa.endPacket();
}
which library are you using?
LoRa.h
what array type do you wish to transmit? e.g. byte, int, float, ?
all the array or just part of it?
in general you use
virtual size_t write(const uint8_t *buffer, size_t size);
where size is a byte count
My entire data is in byte. I am reading certain buttons and pots making array and transmitting.
Thanks.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.