Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rayshobby committed Jul 25, 2024
1 parent 0967fa8 commit 3ab6cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OpenSprinkler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,10 @@ void remote_http_callback(char* buffer) {

int8_t OpenSprinkler::send_http_request(const char* server, uint16_t port, char* p, void(*callback)(char*), bool usessl, uint16_t timeout) {

if(server == NULL || server[0]==0 || port==0 ) { // sanity checking
DEBUG_PRINTLN("server:port is invalid!");
return HTTP_RQT_CONNECT_ERR;
}
#if defined(ARDUINO)

Client *client = NULL;
Expand Down

0 comments on commit 3ab6cde

Please sign in to comment.