Skip to content

Commit 3ba93dd

Browse files
committed
Initial: GSM: support GNSS operations
1 parent cb1fadc commit 3ba93dd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libraries/GSM/src/GSM.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ void arduino::GSMClass::end() {
7474

7575
}
7676

77+
void arduino::GSMClass::startGNSS(mbed::Callback<void(char*)> gnss_cb) {
78+
(static_cast<mbed::GEMALTO_CINTERION_CellularStack*>(_context->get_stack()))->startGNSS(gnss_cb);
79+
}
80+
7781
int arduino::GSMClass::disconnect() {
7882
return 0;
7983
}

libraries/GSM/src/GSM.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class GSMClass : public MbedSocketClass {
7373

7474
void debug(Stream& stream);
7575

76+
void startGNSS(mbed::Callback<void(char*)> gnss_cb);
77+
7678
int ping(const char* hostname, uint8_t ttl = 128);
7779
int ping(const String& hostname, uint8_t ttl = 128);
7880
int ping(IPAddress host, uint8_t ttl = 128);

0 commit comments

Comments
 (0)