sphinx-key: remove tls feature

not needed any longer, mqtts no longer a memory problem
to specify mqtt vs mqtts, add the mqtt[s]:// to the broker url
This commit is contained in:
irriden
2023-11-23 02:35:26 +00:00
parent 66ba02e88a
commit 460f3dbe97
2 changed files with 2 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ version = "0.1.0"
resolver = "2"
[features]
default = ["std", "tls"]
default = ["std"]
no_persist = []
pingpong = []
std = ["sphinx-signer"]

View File

@@ -29,10 +29,7 @@ pub fn make_client(
..Default::default()
};
if cfg!(feature = "tls") {
conf.crt_bundle_attach = Some(esp_idf_svc::sys::esp_crt_bundle_attach);
}
conf.crt_bundle_attach = Some(esp_idf_svc::sys::esp_crt_bundle_attach);
let mut mqtturl = broker.to_string();
if !(mqtturl.starts_with("mqtt://") || mqtturl.starts_with("mqtts://")) {
let scheme = if mqtturl.contains("8883") {