13 #include <server_http.hpp> 15 #define SETPOINT "^/fledge/south/setpoint$" 16 #define OPERATION "^/fledge/south/operation$" 25 void setPoint(std::shared_ptr<SimpleWeb::Server<SimpleWeb::HTTP>::Response> response,
26 std::shared_ptr<SimpleWeb::Server<SimpleWeb::HTTP>::Request> request);
27 void operation(std::shared_ptr<SimpleWeb::Server<SimpleWeb::HTTP>::Response> response,
28 std::shared_ptr<SimpleWeb::Server<SimpleWeb::HTTP>::Request> request);
32 SimpleWeb::Server<SimpleWeb::HTTP>
35 std::thread *m_thread;
Fledge Logger class used to log to syslog.
Definition: logger.h:26
void operation(std::shared_ptr< SimpleWeb::Server< SimpleWeb::HTTP >::Response > response, std::shared_ptr< SimpleWeb::Server< SimpleWeb::HTTP >::Request > request)
Invoke an operation on the south plugin.
Definition: south_api.cpp:188
Definition: south_api.h:20
void setPoint(std::shared_ptr< SimpleWeb::Server< SimpleWeb::HTTP >::Response > response, std::shared_ptr< SimpleWeb::Server< SimpleWeb::HTTP >::Request > request)
Implement the setPoint PUT request.
Definition: south_api.cpp:123
unsigned short getListenerPort()
Return the port the service is listening on.
Definition: south_api.cpp:107
The SouthService class.
Definition: south_service.h:46
void startServer()
Called on the API service thread.
Definition: south_api.cpp:99
~SouthApi()
Destroy the API.
Definition: south_api.cpp:84
SouthApi(SouthService *)
South API class constructor.
Definition: south_api.cpp:58