diff --git a/GpsTracker/Network.cpp b/GpsTracker/Network.cpp index 3073ca7..50d5b7b 100644 --- a/GpsTracker/Network.cpp +++ b/GpsTracker/Network.cpp @@ -42,7 +42,7 @@ namespace network { else noReliableNetwork = 0; if (noReliableNetwork > NETWORK_DEFAULT_NO_NETWORK_TRIES) { NOTICE_MSG("waitForRegistered", "No reliable signal"); - break; //after a while, not network really means no network. Bailing out + break; //after a while, no network really means no network. Bailing out } mainunit::deepSleep(NETWORK_DEFAULT_INTERMEDIATE_TIMEOUT_MS / 1000); @@ -63,4 +63,9 @@ namespace network { bool enableGprs() { return hardware::sim808::device.enableGprs(config::main::value.network.apn); } + + bool sendSms(const char * phoneNumber, const char * msg) { + NOTICE_FORMAT("sendSms", "%s, %s", phoneNumber, msg); + return hardware::sim808::device.sendSms(phoneNumber, msg); + } } \ No newline at end of file diff --git a/GpsTracker/Network.h b/GpsTracker/Network.h index 1f6e8af..abae014 100644 --- a/GpsTracker/Network.h +++ b/GpsTracker/Network.h @@ -11,7 +11,5 @@ namespace network { bool isAvailable(SIM808_NETWORK_REGISTRATION_STATE state); bool enableGprs(); - inline bool sendSms(const char * phoneNumber, const char * msg) { - return hardware::sim808::device.sendSms(phoneNumber, msg); - } + bool sendSms(const char * phoneNumber, const char * msg); } \ No newline at end of file