@@ -5,9 +5,18 @@ namespace main_
55 HttpServer::HttpServer (services::ConnectionFactory& connectionFactory, services::ConfigurationStoreAccess<infra::BoundedString>& hostname,
66 services::ConfigurationStoreAccess<infra::BoundedString>& attributes, services::ConfigurationStoreAccess<infra::BoundedString>& password,
77 application::Authentication& authentication, application::PostmasterDiscovery& postmasterDiscovery,
8- UartCreator& uartProgrammerCreator, UartCreator& uartExternalCreator, hal::Flash& upgradeFlash, hal::Reset& reset, const infra::Function<void (bool open, services::IPAddress address)>& reporter, const infra::Function<void (bool receiving)>& receivingTarget, const infra::Function<void (bool receiving)>& receivingSelf, hal::GpioPin& resetTarget, hal::GpioPin& boot0 )
8+ const infra::Function<void (bool open, services::IPAddress address)>& reporter, const infra::Function<void (bool receiving)>& receivingTarget, const infra::Function<void (bool receiving)>& receivingSelf)
99 : HttpServerFrontEnd(connectionFactory, hostname, attributes, password, authentication, reporter, receivingTarget, receivingSelf)
1010 , discovery(" discovery" , postmasterDiscovery)
11+ {
12+ server.AddPage (discovery);
13+ }
14+
15+ HttpServerSingleConnection::HttpServerSingleConnection (services::ConnectionFactory& connectionFactory, services::ConfigurationStoreAccess<infra::BoundedString>& hostname,
16+ services::ConfigurationStoreAccess<infra::BoundedString>& attributes, services::ConfigurationStoreAccess<infra::BoundedString>& password,
17+ application::Authentication& authentication, application::PostmasterDiscovery& postmasterDiscovery,
18+ UartCreator& uartProgrammerCreator, UartCreator& uartExternalCreator, hal::Flash& upgradeFlash, hal::Reset& reset, const infra::Function<void (bool open, services::IPAddress address)>& reporter, const infra::Function<void (bool receiving)>& receivingTarget, const infra::Function<void (bool receiving)>& receivingSelf, hal::GpioPin& resetTarget, hal::GpioPin& boot0)
19+ : HttpServer(connectionFactory, hostname, attributes, password, authentication, postmasterDiscovery, reporter, receivingTarget, receivingSelf)
1120 , uartProgrammerCreator(uartProgrammerCreator)
1221 , uartExternalCreator(uartExternalCreator)
1322 , selfFirmwarePage{ authentication, " firmware/self" }
@@ -25,6 +34,5 @@ namespace main_
2534 server.AddPage (targetUartExternal.page );
2635 server.AddPage (targetUartEchoProgrammer.page );
2736 server.AddPage (targetUartEchoExternal.page );
28- server.AddPage (discovery);
2937 }
3038}
0 commit comments