@@ -20,7 +20,6 @@ use super::models::SoftwareManagementApiFlag;
2020use super :: models:: TemplatesSet ;
2121use super :: models:: TopicPrefix ;
2222use super :: models:: HTTPS_PORT ;
23- use super :: models:: MQTT_SVC_TLS_PORT ;
2423use super :: models:: MQTT_TLS_PORT ;
2524use super :: tedge_config_location:: TEdgeConfigLocation ;
2625use crate :: models:: AbsolutePath ;
@@ -475,20 +474,9 @@ define_tedge_config! {
475474 #[ tedge_config( example = "true" , default ( value = false ) ) ]
476475 enabled: bool ,
477476
478- /// MQTT service endpoint for the Cumulocity tenant, with optional port.
479- #[ tedge_config( example = "mqtt.your-tenant.cumulocity.com:9883" ) ]
480- #[ tedge_config( default ( from_optional_key = "c8y.mqtt" ) ) ]
481- url: HostPort <MQTT_SVC_TLS_PORT >,
482-
483- /// The topic prefix that will be used for the Cumulocity MQTT service endpoint connection.
484- /// For instance, if set to "c8y-mqtt", then messages published to `c8y-mqtt/xyz`
485- /// will be forwarded to the MQTT service endpoint on the `xyz` topic
486- #[ tedge_config( example = "c8y-mqtt" , default ( function = "c8y_mqtt_service_topic_prefix" ) ) ]
487- topic_prefix: TopicPrefix ,
488-
489477 /// Set of MQTT topics the bridge should subscribe to on the Cumulocity MQTT service endpoint
490478 #[ tedge_config( example = "incoming/topic,another/topic,test/topic" ) ]
491- #[ tedge_config( default ( value = "$demo/$error " ) ) ]
479+ #[ tedge_config( default ( function = "TemplatesSet::default " ) ) ]
492480 topics: TemplatesSet ,
493481 }
494482 } ,
@@ -1220,16 +1208,6 @@ fn c8y_topic_prefix() -> TopicPrefix {
12201208 TopicPrefix :: try_new ( "c8y" ) . unwrap ( )
12211209}
12221210
1223- fn c8y_mqtt_service_topic_prefix ( ) -> TopicPrefix {
1224- TopicPrefix :: try_new ( "c8y-mqtt" ) . unwrap ( )
1225- }
1226-
1227- impl From < HostPort < MQTT_TLS_PORT > > for HostPort < MQTT_SVC_TLS_PORT > {
1228- fn from ( value : HostPort < MQTT_TLS_PORT > ) -> Self {
1229- HostPort :: try_from ( value. host ( ) . to_string ( ) ) . expect ( "Source hostname must have been valid" )
1230- }
1231- }
1232-
12331211fn az_topic_prefix ( ) -> TopicPrefix {
12341212 TopicPrefix :: try_new ( "az" ) . unwrap ( )
12351213}
0 commit comments