added (not yet working) password field

This commit is contained in:
csoler 2019-11-10 22:39:21 +01:00
parent 9dc78d66c1
commit 93376d3461
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 51 additions and 17 deletions

View file

@ -98,7 +98,7 @@ class WebUIThread: public RsThread
public:
WebUIThread()
{
_service = std::make_shared<restbed::Service>();
_service = std::make_shared<restbed::Service>(); // this is a place holder, in case we request some internal values.
_listening_port = 1984;
}
@ -142,12 +142,9 @@ public:
_service->publish( resource2 );
_service->publish( resource3 );
std::cerr << "Starting web service on port " << std::dec << _listening_port << std::endl;
//_service->set_ready_handler( service_ready_handler );
try
{
std::cerr << "Starting web service on port " << std::dec << _listening_port << std::endl;
_service->start( settings );
}
catch(std::exception& e)