student
student

Reputation: 3

Invalid userID() when connecting Gateway to IBM watson IoT platform

this image contains mqtt parameters

parameters

this image contains topic & message

topic & message

this image contains the error

Error

Any insights on how to connect these problem ?

Thanks!

Upvotes: 0

Views: 123

Answers (1)

idan
idan

Reputation: 555

the problem is on subscription action. Devices (user use-token-auth) cannot subscribe on topics such as iot-2/evt/event_id/fmt/format_string (e.g iot-2/evt/abc/fmt/json).

Devices can only publish to the event topics in the following format:

iot-2/evt/event_id/fmt/format_string

and devices can only subscribe to command topics in the following format:

iot-2/cmd/command_id/fmt/format_string

You have more details about that here

Remove the subscribing action, or change topic to smth like iot-2/cmd/abc/fmt/json and it should be ok.

Upvotes: 0

Related Questions