How to invoke an OpenWhisk action from IoT Platform in Bluemix -


we know how invoke openwhisk action iot platform in bluemix. want accomplish is:

  1. send event data device iot platform
  2. subscribe event
  3. call openwhisk action.

we assuming event data json format. know can develop application subscribes event on iot platform like: https://console.bluemix.net/docs/services/iot/applications/libraries/java.html#java. however, believe there must more simpler way.

if @ iot platform, can create action such ifttt, webhook action, forward event cloud, etc. speaking, way recommend invoke openwhisk action iot platform?

any comments or suggestions must appreciated. thank you.

ibm message hub can automatically bridge messages between watson iot platform , openwhisk.

watson iot service provides integration forward incoming topics messages ibm message hub. ibm message hub apache kafka-as-a-service offering on ibm bluemix.

here instructions connecting , configuring historian service watson iot platform using ibm message hub. https://console.bluemix.net/docs/services/iot/message_hub.html#messagehub_main

openwhisk has trigger feed service ibm message hub. can have triggers subscribe messages message hub topic. actions can bound triggers fire automatically each event.

here's example walking through connecting openwhisk action message hub topic: https://github.com/ibm/openwhisk-message-hub-trigger


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -