AnsweredAssumed Answered

Web hooks and the Expression Element

Question asked by Jay Canteenwala Employee on Jan 3, 2019
Latest reply on Jan 8, 2019 by Theophile Leroy

Re. Thread & modular IoT gateway:


All I want is for the Rapid IoT device (in response to various triggers) to send a POST message via an HTTP API to a web service on a local LAN. I want to do this using the NXP studio via the WebUI.

What is the simplest way to do this? Or what are my options? I don’t see anything in the Element Toolbox of the Embedded view to allow me to send a web hook. That can only be done (it seems) via the Application view. I know I can use BLE to send data to the mobile app and send the web hook from there. I want to do it directly from the Embedded App because a mobile phone won’t be nearby but a WiFi network will.


Speaking of Application view. 

I am confused about how the “Expression” element is used. I thought this was using the syntax of Regular Expressions but the documentation for this element is unclear. There are also no examples on how it is to be used.


In my simple app, I am trying to compare the readData string value (which displays on a label as “true" and “false”) with the string “true” but it doesn’t seem to work. I’ve tried various combination with no luck. I’ve attached the .atmo project for reference. Specifically, what should the ‘expression’ filed look like?