File tree 10 files changed +14
-13
lines changed
10 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ install/bin/
5
5
.clang-format
6
6
* .log
7
7
DPPURI_sendable.json
8
+ * .a
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ LIBDIRS = \
54
54
-L$(INSTALLDIR ) /lib \
55
55
-L$(ONEWIFI_HOME ) /install/lib/
56
56
ifeq ($(WITH_SAP ) , 1)
57
- LIBDIRS += -L$(AL_SAP_HOME ) /build/lib
57
+ LIBDIRS += -L$(AL_SAP_HOME ) /
58
58
endif
59
59
60
60
LIBS = -lm -lpthread -ldl -lcjson -luuid -lssl -lcrypto -lwebconfig -lhebus
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ LIBDIRS = \
56
56
-L$(INSTALLDIR ) /lib \
57
57
-L$(ONEWIFI_HOME ) /install/lib/
58
58
ifeq ($(WITH_SAP ) , 1)
59
- LIBDIRS += -L$(AL_SAP_HOME ) /build/lib
59
+ LIBDIRS += -L$(AL_SAP_HOME ) /
60
60
endif
61
61
62
62
LIBS = -lm -lpthread -ldl -luuid -lcjson -lssl -lcrypto -lmysqlcppconn -lhebus
Original file line number Diff line number Diff line change 5
5
6
6
// keeps operation state
7
7
enum class ServiceOperation : uint8_t {
8
- ENABLE = 0x01 ,
9
- DISABLE = 0x02
8
+ SOP_ENABLE = 0x01 ,
9
+ SOP_DISABLE = 0x02
10
10
};
11
11
// keeps the service type requested to the IEEE1905 layer
12
12
enum class ServiceType : uint8_t {
Original file line number Diff line number Diff line change 43
43
44
44
#include < vector>
45
45
#ifdef AL_SAP
46
- #include " al_service_access_point.hpp "
46
+ #include " al_service_access_point.h "
47
47
#endif
48
48
49
49
#define RETRY_SLEEP_INTERVAL_IN_MS 1000
@@ -1435,7 +1435,7 @@ AlServiceAccessPoint* em_agent_t::al_sap_register()
1435
1435
{
1436
1436
AlServiceAccessPoint* sap = new AlServiceAccessPoint (SOCKET_PATH);
1437
1437
1438
- AlServiceRegistrationRequest registrationRequest (ServiceOperation::SO_ENABLE , ServiceType::SAP_TUNNEL_CLIENT);
1438
+ AlServiceRegistrationRequest registrationRequest (ServiceOperation::SOP_ENABLE , ServiceType::SAP_TUNNEL_CLIENT);
1439
1439
sap->serviceAccessPointRegistrationRequest (registrationRequest);
1440
1440
1441
1441
AlServiceRegistrationResponse registrationResponse = sap->serviceAccessPointRegistrationResponse ();
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ void AlServiceAccessPoint::serviceAccessPointDataRequest(AlServiceDataUnit& mess
83
83
size_t totalSize = payload.size ();
84
84
85
85
// first condition to check if the service has been correctly registered enable
86
- if (registrationRequest.getServiceOperation () == ServiceOperation::ENABLE || registrationResponse.getResult () == RegistrationResult::SUCCESS) {
86
+ if (registrationRequest.getServiceOperation () == ServiceOperation::SOP_ENABLE || registrationResponse.getResult () == RegistrationResult::SUCCESS) {
87
87
88
88
// If payload size is less than or equal to 1500, send directly without fragmentation
89
89
if (totalSize <= fragmentSize) {
@@ -139,7 +139,7 @@ void AlServiceAccessPoint::serviceAccessPointDataRequest(AlServiceDataUnit& mess
139
139
#endif
140
140
std::cout << " Cannot send data: Registration unsuccessful." << std::endl;
141
141
throw AlServiceException (" Registration unsuccessful" , PrimitiveError::RegistrationError);
142
- } else if (registrationRequest.getServiceOperation () != ServiceOperation::ENABLE ) {
142
+ } else if (registrationRequest.getServiceOperation () != ServiceOperation::SOP_ENABLE ) {
143
143
#ifdef DEBUG_MODE
144
144
// If the service operation is not enabled
145
145
std::cout << " Cannot send data: Service operation not enabled." << std::endl;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ AlServiceRegistrationRequest::AlServiceRegistrationRequest(ServiceOperation oper
9
9
10
10
// Default constructor
11
11
AlServiceRegistrationRequest::AlServiceRegistrationRequest ()
12
- : serviceOperation(ServiceOperation::ENABLE ), serviceType(ServiceType::SAP_TUNNEL_CLIENT) {}
12
+ : serviceOperation(ServiceOperation::SOP_ENABLE ), serviceType(ServiceType::SAP_TUNNEL_CLIENT) {}
13
13
14
14
// Setter for service operation
15
15
void AlServiceRegistrationRequest::setServiceOperation (ServiceOperation service) {
Original file line number Diff line number Diff line change 46
46
#include " util.h"
47
47
48
48
#ifdef AL_SAP
49
- #include " al_service_access_point.hpp "
49
+ #include " al_service_access_point.h "
50
50
#endif
51
51
52
52
em_ctrl_t g_ctrl;
@@ -842,7 +842,7 @@ AlServiceAccessPoint* em_ctrl_t::al_sap_register()
842
842
{
843
843
AlServiceAccessPoint* sap = new AlServiceAccessPoint (SOCKET_PATH);
844
844
845
- AlServiceRegistrationRequest registrationRequest (ServiceOperation::SO_ENABLE , ServiceType::SAP_TUNNEL_CLIENT);
845
+ AlServiceRegistrationRequest registrationRequest (ServiceOperation::SOP_ENABLE , ServiceType::SAP_TUNNEL_CLIENT);
846
846
sap->serviceAccessPointRegistrationRequest (registrationRequest);
847
847
848
848
AlServiceRegistrationResponse registrationResponse = sap->serviceAccessPointRegistrationResponse ();
Original file line number Diff line number Diff line change 52
52
#include " util.h"
53
53
54
54
#ifdef AL_SAP
55
- #include " al_service_access_point.hpp "
55
+ #include " al_service_access_point.h "
56
56
57
57
extern AlServiceAccessPoint* g_sap;
58
58
extern MacAddress g_al_mac_sap;
Original file line number Diff line number Diff line change 47
47
#include " util.h"
48
48
49
49
#ifdef AL_SAP
50
- #include " al_service_access_point.hpp "
50
+ #include " al_service_access_point.h "
51
51
52
52
extern char *global_netid;
53
53
extern AlServiceAccessPoint* g_sap;
You can’t perform that action at this time.
0 commit comments