Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTTS - Error when trying to connect #382

Open
mauriciomietto opened this issue Sep 20, 2023 · 1 comment
Open

MQTTS - Error when trying to connect #382

mauriciomietto opened this issue Sep 20, 2023 · 1 comment

Comments

@mauriciomietto
Copy link

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 mauriciomietto changed the title MQTTS - Erro ao tentar conexão MQTTS - Error when trying to connect Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant