publishitem.groovy is not sending "entry" data correctly?

martian kuo
Added about 3 years ago

When access from localhost:8080/ui/

The scripts "PublishItem.groovy" does not seem to send the "entry" data at all.

Any idea what's wrong?

I am executing the command "publish item to node" under Discovery > Publish-Subscribe via the web interface.

I can receive the message allright. But NO data from "entry".

Here is the message received:

​ ​

      <items node=​"pubsub.v7">​<item id=​"ajkjd12kj3">​</item>​



Replies (2)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

What you entered in entry field? There should be passed a valid XML to publish as an item.

Please also check how pubsub node is configured as it is possible to configure pubsub node to send whole items or only notifications about new items published (in this case there will be no content in item).

Added by martian kuo about 3 years ago