|
@ -17,8 +17,8 @@ |
|
|
// #define TINY_GSM_MODEM_M590
|
|
|
// #define TINY_GSM_MODEM_M590
|
|
|
// #define TINY_GSM_MODEM_ESP8266
|
|
|
// #define TINY_GSM_MODEM_ESP8266
|
|
|
|
|
|
|
|
|
// Increase buffer fo see less commands
|
|
|
|
|
|
#define TINY_GSM_RX_BUFFER 256
|
|
|
|
|
|
|
|
|
// Increase the buffer
|
|
|
|
|
|
#define TINY_GSM_RX_BUFFER 512
|
|
|
|
|
|
|
|
|
#include <TinyGsmClient.h>
|
|
|
#include <TinyGsmClient.h>
|
|
|
#include <StreamDebugger.h>
|
|
|
#include <StreamDebugger.h>
|
|
@ -46,7 +46,7 @@ TinyGsm modem(debugger); |
|
|
TinyGsmClient client(modem); |
|
|
TinyGsmClient client(modem); |
|
|
|
|
|
|
|
|
const char server[] = "cdn.rawgit.com"; |
|
|
const char server[] = "cdn.rawgit.com"; |
|
|
const char resource[] = "/vshymanskyy/tinygsm/master/extras/test_simple.txt"; |
|
|
|
|
|
|
|
|
const char resource[] = "/vshymanskyy/tinygsm/master/extras/logo.txt"; |
|
|
|
|
|
|
|
|
void setup() { |
|
|
void setup() { |
|
|
// Set console baud rate
|
|
|
// Set console baud rate
|
|
@ -143,9 +143,9 @@ void loop() { |
|
|
SerialMon.println("************************"); |
|
|
SerialMon.println("************************"); |
|
|
SerialMon.print (" Received: "); |
|
|
SerialMon.print (" Received: "); |
|
|
SerialMon.print(bytesReceived); |
|
|
SerialMon.print(bytesReceived); |
|
|
SerialMon.println("bytes"); |
|
|
|
|
|
|
|
|
SerialMon.println(" bytes"); |
|
|
SerialMon.print (" Test: "); |
|
|
SerialMon.print (" Test: "); |
|
|
SerialMon.println((bytesReceived == 1000) ? "PASSED" : "FAIL"); |
|
|
|
|
|
|
|
|
SerialMon.println((bytesReceived == 121) ? "PASSED" : "FAILED"); |
|
|
SerialMon.println("************************"); |
|
|
SerialMon.println("************************"); |
|
|
|
|
|
|
|
|
// Do nothing forevermore
|
|
|
// Do nothing forevermore
|
|
|