Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-brune authored May 31, 2024
1 parent 776a2ba commit a7552a1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/Wifi_TX/Wifi_TX.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const char *password = "";
NexusTX transmitter(15);
unsigned long timerDelay = 120000; //ask api every 2 minute
unsigned long lastTime = 0;
unsigned long lastTime1 = 0;

void setup() {
Serial.begin(115200);
Expand Down Expand Up @@ -44,11 +43,8 @@ void setup() {
}

void loop() {

if ((millis() - lastTime1) > transmitter.tx_interval) {
// Transmit data
lastTime1 = millis();
if (transmitter.transmit()) PrintSentData(transmitter.SendBuffer, transmitter.buffer_size);
if (transmitter.transmit()){
PrintSentData(transmitter.SendBuffer, transmitter.buffer_size);
if ((millis() - lastTime) > timerDelay) {
fetchdata();
lastTime = millis();
Expand Down

0 comments on commit a7552a1

Please sign in to comment.