mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
Update ClassFlowMQTT.cpp
This commit is contained in:
@@ -110,7 +110,7 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
std::string _param = GetParameterName(splitted[0]);
|
std::string _param = GetParameterName(splitted[0]);
|
||||||
if ((toUpper(_param) == "CACERT") && (splitted.size() > 1))
|
if ((toUpper(_param) == "CACERT") && (splitted.size() > 1))
|
||||||
{
|
{
|
||||||
this->caCertFilename = splitted[1];
|
this->caCertFilename = "/sdcard" + splitted[1];
|
||||||
}
|
}
|
||||||
if ((toUpper(_param) == "VALIDATESERVERCERT") && (splitted.size() > 1))
|
if ((toUpper(_param) == "VALIDATESERVERCERT") && (splitted.size() > 1))
|
||||||
{
|
{
|
||||||
@@ -118,11 +118,11 @@ bool ClassFlowMQTT::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
}
|
}
|
||||||
if ((toUpper(_param) == "CLIENTCERT") && (splitted.size() > 1))
|
if ((toUpper(_param) == "CLIENTCERT") && (splitted.size() > 1))
|
||||||
{
|
{
|
||||||
this->clientCertFilename = splitted[1];
|
this->clientCertFilename = "/sdcard" + splitted[1];
|
||||||
}
|
}
|
||||||
if ((toUpper(_param) == "CLIENTKEY") && (splitted.size() > 1))
|
if ((toUpper(_param) == "CLIENTKEY") && (splitted.size() > 1))
|
||||||
{
|
{
|
||||||
this->clientKeyFilename = splitted[1];
|
this->clientKeyFilename = "/sdcard" + splitted[1];
|
||||||
}
|
}
|
||||||
if ((toUpper(_param) == "USER") && (splitted.size() > 1))
|
if ((toUpper(_param) == "USER") && (splitted.size() > 1))
|
||||||
{
|
{
|
||||||
@@ -370,4 +370,4 @@ void ClassFlowMQTT::handleIdx(string _decsep, string _value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //ENABLE_MQTT
|
#endif //ENABLE_MQTT
|
||||||
|
|||||||
Reference in New Issue
Block a user