How to invoke an OpenWhisk action from IoT Platform in Bluemix -
we know how invoke openwhisk action iot platform in bluemix. want accomplish is:
- send event data device iot platform
- subscribe event
- 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
Post a Comment