Skip to content

Commit 3404205

Browse files
Merge pull request #173 from SpryBTS/master
LoRaWANClass::Send to return indicator that message was accepted
2 parents 9018152 + 8c76111 commit 3404205

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libraries/LoRa/src/LoRaWan_APP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ void LoRaWanClass::join()
683683
}
684684
}
685685

686-
void LoRaWanClass::send()
686+
bool LoRaWanClass::send()
687687
{
688688
if( nextTx == true )
689689
{
@@ -698,7 +698,9 @@ void LoRaWanClass::send()
698698
}
699699

700700
nextTx = SendFrame( );
701+
return true;
701702
}
703+
return false;
702704
}
703705

704706
void LoRaWanClass::cycle(uint32_t dutyCycle)

libraries/LoRa/src/LoRaWan_APP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class LoRaWanClass{
5858
public:
5959
void init(DeviceClass_t lorawanClass,LoRaMacRegion_t region);
6060
void join();
61-
void send();
61+
bool send();
6262
void cycle(uint32_t dutyCycle);
6363
void sleep();
6464
void setDataRateForNoADR(int8_t dataRate);

0 commit comments

Comments
 (0)