@@ -49,7 +49,9 @@ Connector::Connector(Context& context, std::shared_ptr<FilesystemAdapter> filesy
4949#endif // MO_ENABLE_CONNECTOR_LOCK
5050
5151 connectionTimeOutInt = declareConfiguration<int >(" ConnectionTimeOut" , 30 );
52+ registerConfigurationValidator (" ConnectionTimeOut" , VALIDATE_UNSIGNED_INT);
5253 minimumStatusDurationInt = declareConfiguration<int >(" MinimumStatusDuration" , 0 );
54+ registerConfigurationValidator (" MinimumStatusDuration" , VALIDATE_UNSIGNED_INT);
5355 stopTransactionOnInvalidIdBool = declareConfiguration<bool >(" StopTransactionOnInvalidId" , true );
5456 stopTransactionOnEVSideDisconnectBool = declareConfiguration<bool >(" StopTransactionOnEVSideDisconnect" , true );
5557 localPreAuthorizeBool = declareConfiguration<bool >(" LocalPreAuthorize" , false );
@@ -61,6 +63,7 @@ Connector::Connector(Context& context, std::shared_ptr<FilesystemAdapter> filesy
6163
6264 // how long the EVSE tries the Authorize request before it enters offline mode
6365 authorizationTimeoutInt = MicroOcpp::declareConfiguration<int >(MO_CONFIG_EXT_PREFIX " AuthorizationTimeout" , 20 );
66+ registerConfigurationValidator (MO_CONFIG_EXT_PREFIX " AuthorizationTimeout" , VALIDATE_UNSIGNED_INT);
6467
6568 // FreeVend mode
6669 freeVendActiveBool = declareConfiguration<bool >(MO_CONFIG_EXT_PREFIX " FreeVendActive" , false );
@@ -69,7 +72,9 @@ Connector::Connector(Context& context, std::shared_ptr<FilesystemAdapter> filesy
6972 txStartOnPowerPathClosedBool = declareConfiguration<bool >(MO_CONFIG_EXT_PREFIX " TxStartOnPowerPathClosed" , false );
7073
7174 transactionMessageAttemptsInt = declareConfiguration<int >(" TransactionMessageAttempts" , 3 );
75+ registerConfigurationValidator (" TransactionMessageAttempts" , VALIDATE_UNSIGNED_INT);
7276 transactionMessageRetryIntervalInt = declareConfiguration<int >(" TransactionMessageRetryInterval" , 60 );
77+ registerConfigurationValidator (" TransactionMessageRetryInterval" , VALIDATE_UNSIGNED_INT);
7378
7479 if (!availabilityBool) {
7580 MO_DBG_ERR (" Cannot declare availabilityBool" );
0 commit comments