Make modem.stream public. Make user and pass optional in gprsConnect()

This commit is contained in:
Volodymyr Shymanskyy
2018-03-14 01:15:43 +02:00
parent 70e14853cd
commit 4f9182919f
6 changed files with 25 additions and 12 deletions

View File

@@ -447,7 +447,7 @@ public:
/*
* GPRS functions
*/
bool gprsConnect(const char* apn, const char* user, const char* pwd) {
bool gprsConnect(const char* apn, const char* user = NULL, const char* pwd = NULL) {
gprsDisconnect();
// Set the Bearer for the IP
@@ -949,8 +949,10 @@ finish:
return waitResponse(1000, r1, r2, r3, r4, r5);
}
protected:
public:
Stream& stream;
protected:
GsmClient* sockets[TINY_GSM_MUX_COUNT];
};