matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 649 forks source link

APB example modification #106

Open suhaibfs opened 7 years ago

suhaibfs commented 7 years ago

Hello there, I am new to LoRa, I've just configured my gateway and LoRa node ( using Modtronix InAir9 + Arduino Mini Pro ). I am trying to understand how the code works.

  1. How can I make the Arduino transmit the packet upon any action or trigger ( Not by time delay )
  2. How can I load the mydata variable with float for example.

Thank you in advance!

PhatHub commented 6 years ago

1: Funny, because #107 has a link to an example of executing immediately. Basically the line looks like:

do_send(&sendjob, mydata, sizeof(mydata));

2: I would think that mydata will have to be chopped up into an array of unsigned chars/bytes...