Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

ibm watson do not show that device is connected #14

Closed
Dubi09 opened this issue Oct 17, 2020 · 2 comments
Closed

ibm watson do not show that device is connected #14

Dubi09 opened this issue Oct 17, 2020 · 2 comments
Labels
question Further information is requested

Comments

@Dubi09
Copy link

Dubi09 commented Oct 17, 2020

Hello, I am trying to make IoT app based on esp8266, node-red and IBM cloud. I follow your guide. I only use different sensors.

I had to solve some problems. I had to change the order of configTime() and Wifi,begin(). In your order, it didn't work me.

Now I am at part 2: IoT Security. I configured the IBM cloud and uploaded the certificate to esp. The ESP prints "MQTT connected" and begins to send data, but IBM Watson says that the device is not connected, but in section, connection protocols appear new message (attachment). It worked without TLS. I do not know what I did wrong. I append serial output and my code.
I'm not sure if I added the certificate to chrome correctly.

Pavel

Connected to Miroslav
IP address: 192.168.0.107
Setup done
Loaded CA cert
Loaded key
Loaded client cert

Waiting for time
Time sync'd
Sun Oct 18 00:57:38 2020

MQTT Connected
{"d":{"temp":24.14,"humidity":61.1,"water_level":18.326,"soil_humidity":0}}
{"d":{"temp":24.14,"humidity":60.95,"water_level":18.343,"soil_humidity":0}}
{"d":{"temp":24.15,"humidity":61.02,"water_level":17.918,"soil_humidity":0}}
...

Snímek obrazovky 2020-10-18 012037

data_aquisition.ino.txt

@Dubi09
Copy link
Author

Dubi09 commented Oct 18, 2020

I found where is the problem, but I don't know how to solve it. Chrome do no use my CA certificate. I tried to install firefox, and everything works like. I tried to add it via MMC and directly in chrome.

@binnes binnes added the question Further information is requested label Oct 19, 2020
@binnes
Copy link
Owner

binnes commented Oct 19, 2020

Depending in the OS you are using you may need to add your certificate to your OS root certificates, or to the browser.

In Chrome browser settings there is a Privacy and Security section, where you should find the option to Manage Certificates. You need to ensure your root CA certificate is added to the trusted root certificates.

@binnes binnes closed this as completed Oct 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants