Update examples
This commit is contained in:
@@ -33,13 +33,13 @@
|
|||||||
|
|
||||||
// You should get Auth Token in the Blynk App.
|
// You should get Auth Token in the Blynk App.
|
||||||
// Go to the Project Settings (nut icon).
|
// Go to the Project Settings (nut icon).
|
||||||
char auth[] = "YourAuthToken";
|
const char auth[] = "YourAuthToken";
|
||||||
|
|
||||||
// Your GPRS credentials
|
// Your GPRS credentials
|
||||||
// Leave empty, if missing user or pass
|
// Leave empty, if missing user or pass
|
||||||
char apn[] = "YourAPN";
|
const char apn[] = "YourAPN";
|
||||||
char user[] = "";
|
const char user[] = "";
|
||||||
char pass[] = "";
|
const char pass[] = "";
|
||||||
|
|
||||||
// Hardware Serial on Mega, Leonardo, Micro
|
// Hardware Serial on Mega, Leonardo, Micro
|
||||||
#define SerialAT Serial1
|
#define SerialAT Serial1
|
||||||
|
@@ -14,9 +14,9 @@
|
|||||||
|
|
||||||
// Your GPRS credentials
|
// Your GPRS credentials
|
||||||
// Leave empty, if missing user or pass
|
// Leave empty, if missing user or pass
|
||||||
char apn[] = "YourAPN";
|
const char apn[] = "YourAPN";
|
||||||
char user[] = "";
|
const char user[] = "";
|
||||||
char pass[] = "";
|
const char pass[] = "";
|
||||||
|
|
||||||
// Use Hardware Serial on Mega, Leonardo, Micro
|
// Use Hardware Serial on Mega, Leonardo, Micro
|
||||||
#define SerialAT Serial1
|
#define SerialAT Serial1
|
||||||
@@ -28,8 +28,8 @@ char pass[] = "";
|
|||||||
TinyGsm modem(SerialAT);
|
TinyGsm modem(SerialAT);
|
||||||
TinyGsmClient client(modem);
|
TinyGsmClient client(modem);
|
||||||
|
|
||||||
char server[] = "cdn.rawgit.com";
|
const char server[] = "cdn.rawgit.com";
|
||||||
char resource[] = "/vshymanskyy/tinygsm/master/extras/test_10k.hex";
|
const char resource[] = "/vshymanskyy/tinygsm/master/extras/test_10k.hex";
|
||||||
uint32_t knownCRC32 = 0x54b3dcbf;
|
uint32_t knownCRC32 = 0x54b3dcbf;
|
||||||
uint32_t knownFileSize = 10240; // In case server does not send it
|
uint32_t knownFileSize = 10240; // In case server does not send it
|
||||||
|
|
||||||
|
@@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
// Your GPRS credentials
|
// Your GPRS credentials
|
||||||
// Leave empty, if missing user or pass
|
// Leave empty, if missing user or pass
|
||||||
char apn[] = "YourAPN";
|
const char apn[] = "www.ab.kyivstar.net";
|
||||||
char user[] = "";
|
const char user[] = "igprs";
|
||||||
char pass[] = "";
|
const char pass[] = "internet";
|
||||||
|
|
||||||
// Use Hardware Serial on Mega, Leonardo, Micro
|
// Use Hardware Serial on Mega, Leonardo, Micro
|
||||||
#define SerialAT Serial1
|
#define SerialAT Serial1
|
||||||
|
@@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
// Your GPRS credentials
|
// Your GPRS credentials
|
||||||
// Leave empty, if missing user or pass
|
// Leave empty, if missing user or pass
|
||||||
char apn[] = "YourAPN";
|
const char apn[] = "YourAPN";
|
||||||
char user[] = "";
|
const char user[] = "";
|
||||||
char pass[] = "";
|
const char pass[] = "";
|
||||||
|
|
||||||
// Use Hardware Serial on Mega, Leonardo, Micro
|
// Use Hardware Serial on Mega, Leonardo, Micro
|
||||||
#define SerialAT Serial1
|
#define SerialAT Serial1
|
||||||
@@ -26,8 +26,8 @@ char pass[] = "";
|
|||||||
TinyGsm modem(SerialAT);
|
TinyGsm modem(SerialAT);
|
||||||
TinyGsmClient client(modem);
|
TinyGsmClient client(modem);
|
||||||
|
|
||||||
char server[] = "cdn.rawgit.com";
|
const char server[] = "cdn.rawgit.com";
|
||||||
char resource[] = "/vshymanskyy/tinygsm/master/extras/logo.txt";
|
const char resource[] = "/vshymanskyy/tinygsm/master/extras/logo.txt";
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// Set console baud rate
|
// Set console baud rate
|
||||||
|
@@ -34,7 +34,7 @@ void setup() {
|
|||||||
SerialAT.begin(115200);
|
SerialAT.begin(115200);
|
||||||
delay(3000);
|
delay(3000);
|
||||||
|
|
||||||
if (!modem.begin()) {
|
if (!modem.init()) {
|
||||||
SerialMon.println(F("***********************************************************"));
|
SerialMon.println(F("***********************************************************"));
|
||||||
SerialMon.println(F(" Cannot initialize module!"));
|
SerialMon.println(F(" Cannot initialize module!"));
|
||||||
SerialMon.println(F(" Use File -> Examples -> TinyGSM -> tools -> AT_Debug"));
|
SerialMon.println(F(" Use File -> Examples -> TinyGSM -> tools -> AT_Debug"));
|
||||||
|
Reference in New Issue
Block a user