mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	skip verification for wifi
This commit is contained in:
		@@ -109,7 +109,7 @@ public:
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  virtual int connect(IPAddress ip, uint16_t port, int timeout_s) {
 | 
			
		||||
    if (timeout_s != 75) {
 | 
			
		||||
    if (timeout_s != 0) {
 | 
			
		||||
      DBG("Timeout [", timeout_s, "] doesn't apply here.");
 | 
			
		||||
    }
 | 
			
		||||
    // NOTE:  Not caling stop() or yeild() here
 | 
			
		||||
@@ -118,7 +118,7 @@ public:
 | 
			
		||||
    return sock_connected;
 | 
			
		||||
  }
 | 
			
		||||
  virtual int connect(IPAddress ip, uint16_t port) {
 | 
			
		||||
    return connect(ip, port, 75);
 | 
			
		||||
    return connect(ip, port, 0);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  virtual void stop(uint32_t maxWaitMs) {
 | 
			
		||||
@@ -262,7 +262,7 @@ public:
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  virtual int connect(IPAddress ip, uint16_t port, int timeout_s) {
 | 
			
		||||
    if (timeout_s != 75) {
 | 
			
		||||
    if (timeout_s != 0) {
 | 
			
		||||
      DBG("Timeout [", timeout_s, "] doesn't apply here.");
 | 
			
		||||
    }
 | 
			
		||||
    // NOTE:  Not caling stop() or yeild() here
 | 
			
		||||
@@ -1018,6 +1018,7 @@ public:
 | 
			
		||||
    stream.write((uint8_t*)buff, len);
 | 
			
		||||
    stream.flush();
 | 
			
		||||
 | 
			
		||||
    if (beeType != XBEE_S6B_WIFI) {
 | 
			
		||||
      // After a send, verify the outgoing ip if it isn't set
 | 
			
		||||
      if (savedOperatingIP == IPAddress(0, 0, 0, 0)) {
 | 
			
		||||
        modemGetConnected();
 | 
			
		||||
@@ -1027,6 +1028,7 @@ public:
 | 
			
		||||
      else if (len > 5) {
 | 
			
		||||
        modemGetConnected();
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return len;
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user