iCoder
iCoder

Reputation: 1645

Node red in raspberry pi not receiving the commands

I am trying to achieve a simple task. I would like to send the temperature from sense hat to the IBM Watson and receive it back. I am able to send the temperature from the sense hat to the IBM Watson but I am unable to receive it back. Although it shows connected but the debug does not print anything. Let me know if I am missing something.

Node red flow

Temperature data in IBM Watson console

Upvotes: 0

Views: 70

Answers (1)

knolleary
knolleary

Reputation: 10117

A Device connected to Watson IoT Platform is restricted in what topics it can publish and subscribe to.

The messages it sends to the platform are 'events' and must be published on an event topic of the form iot-2/evt/event_id/fmt/format_string.

It can also subscribe to 'commands' from the platform, using a command topic of the form iot-2/cmd/command_id/fmt/format_string.

This means a device cannot subscribe to its own events - it can only subscribe to its commands.

For more information about the MQTT connectivity for the platform, the documentation is here.

Upvotes: 2

Related Questions