eclipse / mita

mita
Eclipse Public License 2.0
56 stars 20 forks source link

MQTTS - Error when trying to connect #382

Open mauriciomietto opened 1 year ago

mauriciomietto commented 1 year ago

Current behavior: Hi, I'm trying to connect to MQTTS and I get the following error:

INFO | XDK IOT: [INFO, C:/Users/Mauricio/XDK-Workspace/MQTTSOracle/src-gen/base/ConnectivityMQTTIOTBroker.c:195] MQTT_Enable : Getting time successful. Current time is 2023-09-20T17:07:00Z INFO | XDK IOT: Error in XDK110 Application package. INFO | XDK IOT: Package ID: 153 INFO | XDK IOT: Module ID: 0 INFO | XDK IOT: Severity code: 2 INFO | XDK IOT: Error code: 12 INFO | XDK IOT: [ERROR, C:/Users/Mauricio/XDK-Workspace/MQTTSOracle/src-gen/base/ConnectivityMQTTIOTBroker.c:442] MQTT_Connect : Failed to connect INFO | XDK IOT: [ERROR, C:/Users/Mauricio/XDK-Workspace/MQTTSOracle/src-gen/main.c:220] failed to enable ConnectivityMQTTIOTBroker

Expected behavior: Being able to connect via MQTTS and send a message. I've already tested it with the MQTTX application and it worked.

Steps to reproduce: IOTBroker.IOTTopic.write({ ${json} });

setup IOTBroker : MQTT{

transport = wifi; cleanSession = true; url = 'mqtts://server.com:8883'; clientId = '123456';

certificatePath = 'OracleCA.crt';

authentication = Login('login','passw'); var IOTTopic = topic('direct/v1/schema/entities/123456/json',1);

}

Related code: INFO | XDK IOT: Error in XDK110 Application package. INFO | XDK IOT: Package ID: 153 INFO | XDK IOT: Module ID: 0 INFO | XDK IOT: Severity code: 2 INFO | XDK IOT: Error code: 12

Other information: I've already managed to connect to an MQTT without encryption.

Thank you.

mauriciomietto commented 1 year ago

https://community.developer.bosch.com/t5/Developer-Board/MQTT-communication-errors-in-MITA-application/m-p/45257#M8146

The same error