mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Don't look for new line before ublox URC's
This commit is contained in:
		| @@ -708,7 +708,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES() | |||||||
|         } else if (r5 && data.endsWith(r5)) { |         } else if (r5 && data.endsWith(r5)) { | ||||||
|           index = 5; |           index = 5; | ||||||
|           goto finish; |           goto finish; | ||||||
|         } else if (data.endsWith(GF(GSM_NL "+UUSORD:"))) { |         } else if (data.endsWith(GF("+UUSORD:"))) { | ||||||
|           int mux = stream.readStringUntil(',').toInt(); |           int mux = stream.readStringUntil(',').toInt(); | ||||||
|           int len = stream.readStringUntil('\n').toInt(); |           int len = stream.readStringUntil('\n').toInt(); | ||||||
|           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { |           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { | ||||||
| @@ -717,7 +717,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES() | |||||||
|           } |           } | ||||||
|           data = ""; |           data = ""; | ||||||
|           DBG("### URC Data Received:", len, "on", mux); |           DBG("### URC Data Received:", len, "on", mux); | ||||||
|         } else if (data.endsWith(GF(GSM_NL "+UUSOCL:"))) { |         } else if (data.endsWith(GF("+UUSOCL:"))) { | ||||||
|           int mux = stream.readStringUntil('\n').toInt(); |           int mux = stream.readStringUntil('\n').toInt(); | ||||||
|           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { |           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { | ||||||
|             sockets[mux]->sock_connected = false; |             sockets[mux]->sock_connected = false; | ||||||
|   | |||||||
| @@ -726,7 +726,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES() | |||||||
|         } else if (r5 && data.endsWith(r5)) { |         } else if (r5 && data.endsWith(r5)) { | ||||||
|           index = 5; |           index = 5; | ||||||
|           goto finish; |           goto finish; | ||||||
|         } else if (data.endsWith(GF(GSM_NL "+UUSORD:"))) { |         } else if (data.endsWith(GF("+UUSORD:"))) { | ||||||
|           int mux = stream.readStringUntil(',').toInt(); |           int mux = stream.readStringUntil(',').toInt(); | ||||||
|           int len = stream.readStringUntil('\n').toInt(); |           int len = stream.readStringUntil('\n').toInt(); | ||||||
|           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { |           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { | ||||||
| @@ -735,7 +735,7 @@ TINY_GSM_MODEM_STREAM_UTILITIES() | |||||||
|           } |           } | ||||||
|           data = ""; |           data = ""; | ||||||
|           DBG("### URC Data Received:", len, "on", mux); |           DBG("### URC Data Received:", len, "on", mux); | ||||||
|         } else if (data.endsWith(GF(GSM_NL "+UUSOCL:"))) { |         } else if (data.endsWith(GF("+UUSOCL:"))) { | ||||||
|           int mux = stream.readStringUntil('\n').toInt(); |           int mux = stream.readStringUntil('\n').toInt(); | ||||||
|           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { |           if (mux >= 0 && mux < TINY_GSM_MUX_COUNT && sockets[mux]) { | ||||||
|             sockets[mux]->sock_connected = false; |             sockets[mux]->sock_connected = false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user