@@ -125,12 +125,7 @@ struct Callbacks {
125
125
std::function<UpdateFirmwareResponse(const UpdateFirmwareRequest& request)> update_firmware_request_callback;
126
126
// callback to be called when a variable has been changed by the CSMS
127
127
std::optional<std::function<void (const SetVariableData& set_variable_data)>> variable_changed_callback;
128
- // callback is called when receiving a SetNetworkProfile.req from the CSMS
129
- std::optional<std::function<SetNetworkProfileStatusEnum(
130
- const int32_t configuration_slot, const NetworkConnectionProfile& network_connection_profile)>>
131
- validate_network_profile_callback;
132
- std::optional<std::function<bool (const NetworkConnectionProfile& network_connection_profile)>>
133
- configure_network_connection_profile_callback;
128
+
134
129
std::optional<std::function<void (const ocpp::DateTime& currentTime)>> time_sync_callback;
135
130
136
131
// / \brief callback to be called to congfigure ocpp message logging
@@ -167,11 +162,20 @@ struct Callbacks {
167
162
// / messageId
168
163
std::optional<std::function<DataTransferResponse(const DataTransferRequest& request)>> data_transfer_callback;
169
164
165
+ /* Callbacks for networking */
170
166
// / \brief register a \p callback that is called when the websocket is connected successfully
171
167
std::function < void (std::optional<NetworkConnectionProfile> network_profile)> websocket_connected_callback;
172
168
173
169
// / \brief register a \p callback that is called when the websocket connection is disconnected
174
170
std::function<void ()>websocket_disconnected_callback;
171
+
172
+ // callback is called when receiving a SetNetworkProfile.req from the CSMS
173
+ std::optional<std::function<SetNetworkProfileStatusEnum(
174
+ const int32_t configuration_slot, const NetworkConnectionProfile& network_connection_profile)>>
175
+ validate_network_profile_callback;
176
+ std::optional<std::function<bool (const NetworkConnectionProfile& network_connection_profile,
177
+ std::promise<int >& network_promise)>>
178
+ configure_network_connection_profile_callback;
175
179
};
176
180
177
181
// / \brief Combines ChangeAvailabilityRequest with persist flag for scheduled Availability changes
0 commit comments