mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	| @@ -111,7 +111,7 @@ public: | |||||||
|     TINY_GSM_CLIENT_DUMP_MODEM_BUFFER() |     TINY_GSM_CLIENT_DUMP_MODEM_BUFFER() | ||||||
|  |  | ||||||
|     if (at->supportsAsyncSockets) { |     if (at->supportsAsyncSockets) { | ||||||
|       DBG("### Closing socket asynchronously!  Socket might remain open until arrival of +UUSOCL: ", mux); |       DBG("### Closing socket asynchronously!  Socket might remain open until arrival of +UUSOCL:", mux); | ||||||
|       // faster asynchronous close |       // faster asynchronous close | ||||||
|       // NOT supported on SARA-R404M / SARA-R410M-01B |       // NOT supported on SARA-R404M / SARA-R410M-01B | ||||||
|       at->sendAT(GF("+USOCL="), mux, GF(",1")); |       at->sendAT(GF("+USOCL="), mux, GF(",1")); | ||||||
| @@ -643,14 +643,14 @@ protected: | |||||||
|           "the URC '+UUSOCO' appears."); |           "the URC '+UUSOCO' appears."); | ||||||
|       sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",1"); |       sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",1"); | ||||||
|       while (millis() - startMillis < timeout_ms && |       while (millis() - startMillis < timeout_ms && | ||||||
|                  sockets[*mux]->sock_connected == false) {} |              sockets[*mux]->sock_connected == false) {} | ||||||
|       } |       return sockets[*mux]->sock_connected == true; | ||||||
|       else { |     } else { | ||||||
|         // use synchronous open |       // use synchronous open | ||||||
|         sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port); |       sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port); | ||||||
|         int rsp = waitResponse(timeout_ms); |       int rsp = waitResponse(timeout_ms); | ||||||
|         return (1 == rsp); |       return (1 == rsp); | ||||||
|       } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   int16_t modemSend(const void* buff, size_t len, uint8_t mux) { |   int16_t modemSend(const void* buff, size_t len, uint8_t mux) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user