|
16 | 16 | #include "cxx_include/esp_modem_dce_factory.hpp"
|
17 | 17 | #include "cxx_include/esp_modem_dce_module.hpp"
|
18 | 18 |
|
19 |
| -// --- ESP-MODEM command module starts here --- |
20 | 19 | /**
|
21 | 20 | * @brief Definition of a custom DCE uses GenericModule and all its methods
|
22 | 21 | * but could override command processing. Here, for demonstration purposes only,
|
@@ -54,37 +53,6 @@ class DCE : public esp_modem::DCE_T<GenericModule>, public CommandableIf {
|
54 | 53 |
|
55 | 54 |
|
56 | 55 |
|
57 |
| -// |
58 |
| -//#define INT_IN(name) int name |
59 |
| -//#ifdef __cplusplus |
60 |
| -//#define STRING_IN(name) const std::string& name |
61 |
| -//#define STRING_OUT(name) std::string& name |
62 |
| -//#define BOOL_IN(name) const bool name |
63 |
| -//#define BOOL_OUT(name) bool& name |
64 |
| -//#define INT_OUT(name) int& name |
65 |
| -//#define INTEGER_LIST_IN(name) const int* name |
66 |
| -//#define STRUCT_OUT(struct_name, name) struct_name& name |
67 |
| -//#else |
68 |
| -//#define STRING_IN(name) const char* name |
69 |
| -//#define STRING_OUT(name) char* name |
70 |
| -//#define BOOL_IN(name) const bool name |
71 |
| -//#define BOOL_OUT(name) bool* name |
72 |
| -//#define INT_OUT(name) int* name |
73 |
| -//#define INTEGER_LIST_IN(name) const int* name |
74 |
| -//#define STRUCT_OUT(struct_name, name) esp_modem_ ## struct_name ## _t* name |
75 |
| -//#endif |
76 |
| -// |
77 |
| -//#define FORWARD_INT_IN(name) name |
78 |
| -//#define FORWARD_STRING_IN(name) name |
79 |
| -//#define FORWARD_STRING_OUT(name) name |
80 |
| -//#define FORWARD_BOOL_IN(name) name |
81 |
| -//#define FORWARD_BOOL_OUT(name) name |
82 |
| -//#define FORWARD_INT_OUT(name) name |
83 |
| -//#define FORWARD_INTEGER_LIST_IN(name) name |
84 |
| -//#define FORWARD_STRUCT_OUT(struct_name, name) name |
85 |
| - |
86 |
| -// Utility to count arguments (works for up to two parameters here) |
87 |
| - |
88 | 56 |
|
89 | 57 |
|
90 | 58 | // DECLARE_ALL_COMMAND_APIS(forwards name(...))
|
|
0 commit comments