mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	CRTP!!!! Totally untested
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
		@@ -12,15 +12,15 @@
 | 
			
		||||
#define TINY_GSM_MODEM_UBLOX
 | 
			
		||||
 | 
			
		||||
// Increase RX buffer if needed
 | 
			
		||||
//#define TINY_GSM_RX_BUFFER 512
 | 
			
		||||
// #define TINY_GSM_RX_BUFFER 512
 | 
			
		||||
 | 
			
		||||
#include <TinyGsmClient.h>
 | 
			
		||||
 | 
			
		||||
// Uncomment this if you want to see all AT commands
 | 
			
		||||
//#define DUMP_AT_COMMANDS
 | 
			
		||||
// #define DUMP_AT_COMMANDS
 | 
			
		||||
 | 
			
		||||
// Uncomment this if you want to use SSL
 | 
			
		||||
//#define USE_SSL
 | 
			
		||||
// #define USE_SSL
 | 
			
		||||
 | 
			
		||||
// Set serial for debug console (to the Serial Monitor, speed 115200)
 | 
			
		||||
#define SerialMon Serial
 | 
			
		||||
@@ -108,7 +108,7 @@ void loop() {
 | 
			
		||||
  client.print(String("Host: ") + server + "\r\n");
 | 
			
		||||
  client.print("Connection: close\r\n\r\n");
 | 
			
		||||
 | 
			
		||||
  unsigned long timeout = millis();
 | 
			
		||||
  uint32_t timeout = millis();
 | 
			
		||||
  while (client.connected() && millis() - timeout < 10000L) {
 | 
			
		||||
    // Print available data
 | 
			
		||||
    while (client.available()) {
 | 
			
		||||
 
 | 
			
		||||
@@ -18,16 +18,16 @@
 | 
			
		||||
#define TINY_GSM_MODEM_SIM800
 | 
			
		||||
 | 
			
		||||
// Increase RX buffer if needed
 | 
			
		||||
//#define TINY_GSM_RX_BUFFER 512
 | 
			
		||||
// #define TINY_GSM_RX_BUFFER 512
 | 
			
		||||
 | 
			
		||||
#include <TinyGsmClient.h>
 | 
			
		||||
#include <ArduinoHttpClient.h>
 | 
			
		||||
 | 
			
		||||
// Uncomment this if you want to see all AT commands
 | 
			
		||||
//#define DUMP_AT_COMMANDS
 | 
			
		||||
// #define DUMP_AT_COMMANDS
 | 
			
		||||
 | 
			
		||||
// Uncomment this if you want to use SSL
 | 
			
		||||
//#define USE_SSL
 | 
			
		||||
// #define USE_SSL
 | 
			
		||||
 | 
			
		||||
// Set serial for debug console (to the Serial Monitor, speed 115200)
 | 
			
		||||
#define SerialMon SerialUSB
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@
 | 
			
		||||
#define SerialAT Serial1
 | 
			
		||||
 | 
			
		||||
// Uncomment this if you want to see all AT commands
 | 
			
		||||
//#define DUMP_AT_COMMANDS
 | 
			
		||||
// #define DUMP_AT_COMMANDS
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef DUMP_AT_COMMANDS
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user