Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/LoRaWan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,15 @@ void LoRaWanClass::setDeviceLowPower(void)
delay(DEFAULT_TIMEWAIT);
}

void LoRaWanClass::sendDevicePing(void)
{
sendCommand("AT\r\n");
#if _DEBUG_SERIAL_
loraDebugPrint(DEFAULT_DEBUGTIME);
#endif
smartDelay(DEFAULT_TIMEWAIT);
}

//
// Reset the LoRa module. Does not factory reset
//
Expand Down Expand Up @@ -1042,4 +1051,4 @@ short LoRaWanClass::sendCommandAndWaitForResponse(char* command, char *response,
}


LoRaWanClass lora;
LoRaWanClass lora;
9 changes: 8 additions & 1 deletion src/LoRaWan.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ class LoRaWanClass
* \return Return null
*/
void setDeviceLowPower(void);

/**
* \brief Send ping
*
* \return Return null
*/
void sendDevicePing(void);

/**
* \brief Reset device
Expand Down Expand Up @@ -498,4 +505,4 @@ class LoRaWanClass
extern LoRaWanClass lora;


#endif
#endif