Friendly LWM2M client
WppPlatform.h
Go to the documentation of this file.
1 /*
2  * WppPlatform.h
3  *
4  * Created on: 31 Jul 2023
5  * Author: valentin
6  */
7 
8 #ifndef WPP_PLATFORM_H_
9 #define WPP_PLATFORM_H_
10 
11 #include <string>
12 
13 namespace wpp {
14 
26 class WppPlatform {
27 public:
36  static time_t getTime(void);
37 
49  static void print(const char * msg, va_list arg);
50 
62  static void print(const char * msg, ...) {
63  va_list ap;
64  va_start(ap, msg);
65  print(msg, ap);
66  va_end(ap);
67  }
68 };
69 
70 } // namespace wpp
71 
72 #endif /* WPP_PLATFORM_H_ */
The WppPlatform class provides a platform-specific implementation for the Wpp library.
Definition: WppPlatform.h:26
static void print(const char *msg,...)
Prints a formatted message.
Definition: WppPlatform.h:62
static time_t getTime(void)
Returns the number of seconds elapsed since a specific origin.
static void print(const char *msg, va_list arg)
Prints a formatted message.
The WppConnection class represents a connection interface for the Wpp library.
Definition: WppClient.cpp:14