Fix diagnostics for some modem types
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
// #define TINY_GSM_MODEM_M590
|
||||
// #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 <StreamDebugger.h>
|
||||
@@ -46,7 +46,7 @@ TinyGsm modem(debugger);
|
||||
TinyGsmClient client(modem);
|
||||
|
||||
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() {
|
||||
// Set console baud rate
|
||||
@@ -143,9 +143,9 @@ void loop() {
|
||||
SerialMon.println("************************");
|
||||
SerialMon.print (" Received: ");
|
||||
SerialMon.print(bytesReceived);
|
||||
SerialMon.println("bytes");
|
||||
SerialMon.println(" bytes");
|
||||
SerialMon.print (" Test: ");
|
||||
SerialMon.println((bytesReceived == 1000) ? "PASSED" : "FAIL");
|
||||
SerialMon.println((bytesReceived == 121) ? "PASSED" : "FAILED");
|
||||
SerialMon.println("************************");
|
||||
|
||||
// Do nothing forevermore
|
||||
|
Reference in New Issue
Block a user