Skip to content

Commit d4da119

Browse files
chore: update submodules (#128)
* Reapply "chore: update submodules (#121)" (#123) This reverts commit 3064c40. * Zero-terminate hostname * Invoke lambda
1 parent 3064c40 commit d4da119

File tree

18 files changed

+57
-50
lines changed

18 files changed

+57
-50
lines changed

.vscode/launch.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"svdFile": "${workspaceFolder}/amp-hal-st/STM32F407.svd",
6363
"servertype": "jlink",
6464
"serverpath": "/opt/segger/jlink/JLinkGDBServer",
65-
"objdumpPath": "arm-none-eabi-objdump",
66-
"runToEntryPoint": "main"
65+
"objdumpPath": "arm-none-eabi-objdump"
6766
}
6867
]
6968
}

amp-embedded-infra-lib

amp-hal-st

Submodule amp-hal-st updated 75 files

postmaster/flex/EchoWebSocketClientFactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace application
4242
connection.Attach(webSocketConnection);
4343
webSocketConnection->Attach(echo.Emplace(serializerFactoryWebSocket));
4444

45-
listener.Emplace(connectionFactory, 1234, services::SingleConnectionListener::Creators{ connectionCreator });
45+
listener.emplace(connectionFactory, 1234, services::SingleConnectionListener::Creators{ connectionCreator });
4646
}
4747

4848
void EchoWebSocketClientFactory::WebSocketInitiationError(WebSocketClientObserverFactory::ConnectFailReason reason)

postmaster/flex/EchoWebSocketClientFactory.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ namespace application
3636
services::MethodSerializerFactory::OnHeap serializerFactoryListener;
3737
infra::SharedOptional<services::WebSocketClientConnectionObserver> webSocket;
3838
infra::SharedOptional<services::EchoOnConnection> echo;
39-
infra::Optional<services::SingleConnectionListener> listener;
40-
infra::Optional<services::EchoOnConnection> listenConnection;
39+
std::optional<services::SingleConnectionListener> listener;
40+
std::optional<services::EchoOnConnection> listenConnection;
4141

4242
infra::CreatorExternal<services::ConnectionObserver, void(services::IPAddress address)> connectionCreator{ [this](services::IPAddress address) -> services::ConnectionObserver&
4343
{
44-
listenConnection.Emplace(serializerFactoryListener);
45-
forwarder1.Emplace(*echo, *listenConnection);
46-
forwarder2.Emplace(*listenConnection, *echo);
44+
listenConnection.emplace(serializerFactoryListener);
45+
forwarder1.emplace(*echo, *listenConnection);
46+
forwarder2.emplace(*listenConnection, *echo);
4747
return *listenConnection;
4848
},
4949
[this]()
5050
{
51-
forwarder1 = infra::none;
52-
forwarder2 = infra::none;
53-
listenConnection = infra::none;
51+
forwarder1 = std::nullopt;
52+
forwarder2 = std::nullopt;
53+
listenConnection = std::nullopt;
5454
} };
5555

56-
infra::Optional<services::ServiceForwarderAll> forwarder1;
57-
infra::Optional<services::ServiceForwarderAll> forwarder2;
56+
std::optional<services::ServiceForwarderAll> forwarder1;
57+
std::optional<services::ServiceForwarderAll> forwarder2;
5858
};
5959
}
6060

postmaster/flex/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ int main(int argc, const char* argv[], const char* env[])
5757
static services::HttpClientConnectorWithNameResolverImpl<> connector(network.ConnectionFactoryWithNameResolver());
5858
static infra::BoundedString::WithStorage<512> httpUrl{ urlArg };
5959
static infra::BoundedString::WithStorage<512> webSocketUrl{ urlArg };
60-
static application::EchoWebSocketClientFactory webSocketFactory(webSocketUrl, services::PortFromUrl(webSocketUrl).ValueOr(80), network.ConnectionFactory(), tracer.tracer);
60+
static application::EchoWebSocketClientFactory webSocketFactory(webSocketUrl, services::PortFromUrl(webSocketUrl).value_or(80), network.ConnectionFactory(), tracer.tracer);
6161
static services::HttpClientWebSocketInitiation webSocketInitiation(webSocketFactory, connector,
6262
webSocketFactory, randomDataGenerator, services::noAutoConnect);
6363
static application::HttpClientAuthenticationDigest::WithMaxHeaders<10> clientAuthentication{ passwordArg, randomDataGenerator };
6464
static services::HttpClientAuthenticationConnector clientAuthenticationConnector{ connector, clientAuthentication };
65-
static application::FlexHttpClient httpClient(httpUrl, services::PortFromUrl(httpUrl).ValueOr(80), clientAuthenticationConnector, firmware, webSocketInitiation, tracer.tracer);
65+
static application::FlexHttpClient httpClient(httpUrl, services::PortFromUrl(httpUrl).value_or(80), clientAuthenticationConnector, firmware, webSocketInitiation, tracer.tracer);
6666

6767
network.ExecuteUntil([&]()
6868
{

postmaster/frontend/ReportingHttpServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ namespace application
1818
: SingleConnectionListener(connectionFactory, port, { connectionCreator })
1919
, reporter(reporter)
2020
, buffer(buffer)
21-
, connectionCreator([this](infra::Optional<ReportingHttpServerConnectionObserver>& value, services::IPAddress address)
21+
, connectionCreator([this](std::optional<ReportingHttpServerConnectionObserver>& value, services::IPAddress address)
2222
{
23-
value.Emplace(this->buffer, *this, this->reporter, address);
23+
value.emplace(this->buffer, *this, this->reporter, address);
2424
})
2525
{}
2626
}

postmaster/instantiations/EchoServer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ namespace main_
3030

3131
UartCreator& serialCreator;
3232

33-
infra::Creator<services::ConnectionObserver, Bridge, void(services::IPAddress address)> bridgeCreator{ [this](infra::Optional<Bridge>& value, services::IPAddress address)
33+
infra::Creator<services::ConnectionObserver, Bridge, void(services::IPAddress address)> bridgeCreator{ [this](std::optional<Bridge>& value, services::IPAddress address)
3434
{
35-
value.Emplace(serialCreator);
35+
value.emplace(serialCreator);
3636
} };
3737

3838
services::SingleConnectionListener listener;

postmaster/instantiations/Mdns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace main_
77
, version{ Create<16>(version, "vs") }
88
, versionFull{ Create<19>(versionFull, "vf") }
99
, attributes{ Create<67>(attributes, "at") }
10-
, server(factory, multicast, hostname, "postmaster", "_tcp", infra::MakeOptional(ipAddress), infra::none, 80, text)
10+
, server(factory, multicast, hostname, "postmaster", "_tcp", std::make_optional(ipAddress), std::nullopt, 80, text)
1111
{}
1212

1313
template<std::size_t Size>

0 commit comments

Comments
 (0)