cc
Diff: SpwfInterface.cpp
- Revision:
- 16:c8697141ce44
- Parent:
- 15:0a075334e0e9
--- a/SpwfInterface.cpp Tue Jan 10 10:39:56 2017 +0000 +++ b/SpwfInterface.cpp Fri Jan 13 14:37:49 2017 +0000 @@ -167,6 +167,16 @@ return (_spwf.settime(ctTime)); } +/** +* @brief get UTC time on wifi module +* @param time since epoch in UTC format +* @retval true on succes +*/ +int SpwfSAInterface::get_time(time_t *ctTime) +{ + return (_spwf.gettime(ctTime)); +} + int SpwfSAInterface::set_TLS_certificate(char *cert, unsigned int size, CertType_t type) { return (_spwf.setTLScertificate(cert, size, type)); @@ -223,7 +233,7 @@ socket->server_port = id; socket->proto = proto; socket->connected = false; - if (isSecure_socket()) socket->secure = true; + if (isSecure_mode()) socket->secure = true; else socket->secure = false; *handle = socket; return 0; @@ -254,7 +264,7 @@ * @param none * @retval true if secure */ -bool SpwfSAInterface::isSecure_socket(void) +bool SpwfSAInterface::isSecure_mode(void) { return isSecure; }