User Tools

Site Tools


iot:tutorial:aws-integration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
iot:tutorial:aws-integration [2020/06/15 13:41] – [__Ensure, that data comes to DDB.__ by WH register change, using auxiliary register.] atolstoviot:tutorial:aws-integration [2020/06/15 14:04] – [Setting up trigger script] atolstov
Line 268: Line 268:
  
 ===== Testing and Next Steps =====  ===== Testing and Next Steps ===== 
-==== To make it possible to post to AWS Broker set up topic for mqtt_pubslish as update and mqtt_get as get. (fix topic's names in WH register settings) ====+==== Testing ====
  
 Okay, so now it is working AWS MQTT communication and tested successfully. Okay, so now it is working AWS MQTT communication and tested successfully.
 The next step is to reconfigure MQTT topics from ''iot-test'' to Thing's Shadow ''.../update'' topic. The next step is to reconfigure MQTT topics from ''iot-test'' to Thing's Shadow ''.../update'' topic.
 {{ :iot:aws:wh:wh_to_aws_update_and_trigger.png?direct |}} {{ :iot:aws:wh:wh_to_aws_update_and_trigger.png?direct |}}
-This will lead the message to IoT Core Rules processingand in the end hitting to DynamoDB table.+There is a trigger to run scriptby the register's value change to post a message to AWS 
 {{ :iot:aws:wh:wh_to_aws_update_scripts.png?direct |}} {{ :iot:aws:wh:wh_to_aws_update_scripts.png?direct |}}
 +This settings will lead the message to AWS IoT Core Rules processing, and in the end hitting to DynamoDB table.
 +
 ==== Setting up trigger script  ==== ==== Setting up trigger script  ====
-There should be a trigger to change the register's value to post a message to AWS.  For the testing purpose you can do this manually.+There should be a trigger to change the register's value to post a message to AWS, because of too short duration of scan and superfluity of update frequincy for cloud data processing. 
 +For the testing purpose you can do this manually.
 {{ :iot:aws:wh:wh_to_aws_update_triggered.png?direct |}} {{ :iot:aws:wh:wh_to_aws_update_triggered.png?direct |}}
-==== __Ensure, that data comes to DDB.__ by WH register changeusing auxiliary register====+After that, check the DynamoDB Table's Item append. 
 {{ :iot:aws:wh:ddb_update.gif?direct |}} {{ :iot:aws:wh:ddb_update.gif?direct |}}
 +When you ensure, that data comes to DynamoDB triggered by auxilary WebHMI register change, you can set up the trigger's toggle by script.
 +
 As an example there is two practices such as time dependent (oscillator) or quantity depended (decimation) trigger. \\  As an example there is two practices such as time dependent (oscillator) or quantity depended (decimation) trigger. \\ 
  \\   \\ 
 **//Oscillator code://**  \\  **//Oscillator code://**  \\ 
 If there is a neccesity to post with predefined frequency, for example 15 second can be done with following script. If there is a neccesity to post with predefined frequency, for example 15 second can be done with following script.
 +
 <code lua> <code lua>
 a1,a2,a3,a4 = 0,0,0,0 a1,a2,a3,a4 = 0,0,0,0
Line 351: Line 358:
 </code> </code>
  
 +==== Next steps ====
 Create ES Create ES
 check Kibana metric created. check Kibana metric created.
iot/tutorial/aws-integration.txt · Last modified: 2021/07/22 07:32 by atolstov

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki