Skip to content

MQTTS - Error when trying to connect #382

@mauriciomietto

Description

@mauriciomietto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions