mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Removed some non-ascii characters
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
		@@ -288,7 +288,7 @@ class TinyGsmM95
 | 
			
		||||
 | 
			
		||||
    // Set Method to Handle Received TCP/IP Data
 | 
			
		||||
    // Mode = 1 - Output a notification when data is received
 | 
			
		||||
    // “+QIRDI: <id>,<sc>,<sid>”
 | 
			
		||||
    // +QIRDI: <id>,<sc>,<sid>
 | 
			
		||||
    sendAT(GF("+QINDI=1"));
 | 
			
		||||
    if (waitResponse() != 1) { return false; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -282,7 +282,7 @@ class TinyGsmMC60
 | 
			
		||||
 | 
			
		||||
    // Set Method to Handle Received TCP/IP Data
 | 
			
		||||
    // Mode=2 - Output a notification statement:
 | 
			
		||||
    // “+QIRDI: <id>,<sc>,<sid>,<num>,<len>,< tlen>”
 | 
			
		||||
    // +QIRDI: <id>,<sc>,<sid>,<num>,<len>,< tlen>
 | 
			
		||||
    sendAT(GF("+QINDI=2"));
 | 
			
		||||
    if (waitResponse() != 1) { return false; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -305,7 +305,7 @@ class TinyGsmSim5360 : public TinyGsmModem<TinyGsmSim5360>,
 | 
			
		||||
      waitResponse();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Set active PDP context’s profile number
 | 
			
		||||
    // Set active PDP context's profile number
 | 
			
		||||
    // This ties the embedded TCP/IP application to the external PDP context
 | 
			
		||||
    sendAT(GF("+CSOCKSETPN=1"));
 | 
			
		||||
    waitResponse();
 | 
			
		||||
@@ -327,10 +327,10 @@ class TinyGsmSim5360 : public TinyGsmModem<TinyGsmSim5360>,
 | 
			
		||||
    //         = 10 (default)
 | 
			
		||||
    // DelayTm = number of milliseconds to delay before outputting received data
 | 
			
		||||
    //          = 0 (default)
 | 
			
		||||
    // Ack = sets whether reporting a string “Send ok” = 0 (don't report)
 | 
			
		||||
    // Ack = sets whether reporting a string "Send ok" = 0 (don't report)
 | 
			
		||||
    // errMode = mode of reporting error result code = 0 (numberic values)
 | 
			
		||||
    // HeaderType = which data header of receiving data in multi-client mode
 | 
			
		||||
    //            = 1 (“+RECEIVE,<link num>,<data length>”)
 | 
			
		||||
    //            = 1 (+RECEIVE,<link num>,<data length>)
 | 
			
		||||
    // AsyncMode = sets mode of executing commands
 | 
			
		||||
    //           = 0 (synchronous command executing)
 | 
			
		||||
    // TimeoutVal = minimum retransmission timeout in milliseconds = 75000
 | 
			
		||||
 
 | 
			
		||||
@@ -429,7 +429,7 @@ class TinyGsmSequansMonarch
 | 
			
		||||
    // <connId> = Connection ID = mux
 | 
			
		||||
    // <txProt> = Transmission protocol = 0 - TCP (1 for UDP)
 | 
			
		||||
    // <rPort> = Remote host port to contact
 | 
			
		||||
    // <IPaddr> = Any valid IP address in the format “xxx.xxx.xxx.xxx” or any
 | 
			
		||||
    // <IPaddr> = Any valid IP address in the format xxx.xxx.xxx.xxx or any
 | 
			
		||||
    // host name solved with a DNS query
 | 
			
		||||
    // <closureType> = Socket closure behaviour for TCP, has no effect for UDP
 | 
			
		||||
    //               = 0 - local port closes when remote does (default)
 | 
			
		||||
 
 | 
			
		||||
@@ -590,7 +590,7 @@ class TinyGsmUBLOX
 | 
			
		||||
    uint32_t startMillis = millis();
 | 
			
		||||
 | 
			
		||||
    // create a socket
 | 
			
		||||
    sendAT(GF("+USOCR=6"));  // create a socket
 | 
			
		||||
    sendAT(GF("+USOCR=6"));
 | 
			
		||||
    // reply is +USOCR: ## of socket created
 | 
			
		||||
    if (waitResponse(GF(GSM_NL "+USOCR:")) != 1) { return false; }
 | 
			
		||||
    *mux = streamGetInt('\n');
 | 
			
		||||
 
 | 
			
		||||
@@ -58,11 +58,11 @@ enum RegStatus {
 | 
			
		||||
// These are responses to the HS command to get "hardware series"
 | 
			
		||||
enum XBeeType {
 | 
			
		||||
  XBEE_UNKNOWN   = 0,
 | 
			
		||||
  XBEE_S6B_WIFI  = 0x601,  // Digi XBee® Wi-Fi
 | 
			
		||||
  XBEE_LTE1_VZN  = 0xB01,  // Digi XBee® Cellular LTE Cat 1
 | 
			
		||||
  XBEE_3G        = 0xB02,  // Digi XBee® Cellular 3G
 | 
			
		||||
  XBEE3_LTE1_ATT = 0xB06,  // Digi XBee3™ Cellular LTE CAT 1
 | 
			
		||||
  XBEE3_LTEM_ATT = 0xB08,  // Digi XBee3™ Cellular LTE-M
 | 
			
		||||
  XBEE_S6B_WIFI  = 0x601,  // Digi XBee Wi-Fi
 | 
			
		||||
  XBEE_LTE1_VZN  = 0xB01,  // Digi XBee Cellular LTE Cat 1
 | 
			
		||||
  XBEE_3G        = 0xB02,  // Digi XBee Cellular 3G
 | 
			
		||||
  XBEE3_LTE1_ATT = 0xB06,  // Digi XBee3 Cellular LTE CAT 1
 | 
			
		||||
  XBEE3_LTEM_ATT = 0xB08,  // Digi XBee3 Cellular LTE-M
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class TinyGsmXBee
 | 
			
		||||
 
 | 
			
		||||
@@ -103,6 +103,7 @@ class TinyGsmGPRS {
 | 
			
		||||
  // AT+GSN command
 | 
			
		||||
  String getIMEIImpl() {
 | 
			
		||||
    thisModem().sendAT(GF("+GSN"));
 | 
			
		||||
    thisModem().streamSkipUntil('\n');  // skip first newline
 | 
			
		||||
    String res = thisModem().stream.readStringUntil('\n');
 | 
			
		||||
    thisModem().waitResponse();
 | 
			
		||||
    res.trim();
 | 
			
		||||
@@ -113,6 +114,7 @@ class TinyGsmGPRS {
 | 
			
		||||
  // command
 | 
			
		||||
  String getIMSIImpl() {
 | 
			
		||||
    thisModem().sendAT(GF("+CIMI"));
 | 
			
		||||
    thisModem().streamSkipUntil('\n');  // skip first newline
 | 
			
		||||
    String res = thisModem().stream.readStringUntil('\n');
 | 
			
		||||
    thisModem().waitResponse();
 | 
			
		||||
    res.trim();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user