<
From version < 22.1 >
edited by Xiaoling
on 2022/09/05 08:54
To version < 22.2 >
edited by Xiaoling
on 2022/09/05 08:55
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -57,16 +57,24 @@
57 57  
58 58  == Create a Losant Application Workflow to Receive Data from the LoRaWAN Sensor and Confirm Data Flow to Losant via Uplinks ==
59 59  
60 +
60 60  Since TTS is now configured to forward data to the Losant Webhook, let’s create a [[Losant Application Workflow>>url:https://docs.losant.com/workflows/application-workflows/]] to receive the data from TTS.
61 61  
62 62  Click on Workflows and then in the Application Workflow section, click Add to create a new Application Workflow.
63 63  
65 +[[image:image-20220905085017-8.png]]
66 +
64 64  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image014.jpg]]
65 65  
66 66  Enter a name for your Application Workflow (as well as a description if you’d like) and click Create Workflow.
67 67  
71 +[[image:image-20220905085035-9.png]]
72 +
73 +
68 68  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image016.jpg]]Drag and drop the [[Webhook Trigger Node>>url:https://docs.losant.com/workflows/triggers/webhook/]] and the [[Debug Node>>url:https://docs.losant.com/workflows/outputs/debug/]] onto the visual workflow engine’s canvas and connect them together. If you have only one webhook in this Losant application, it will be automatically selected for the Webhook Trigger. If you have multiple webhooks, select the one that was created in Webhook. Next, click Save and Deploy. Now that this workflow is deployed, click on the [[Debug Panel>>url:https://docs.losant.com/workflows/debugging-workflows/#debug-node-messages]].
69 69  
76 +[[image:image-20220905085051-10.png]]
77 +
70 70  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image018.jpg]]
71 71  
72 72  When TTS receives new data from the sensor, it will send that data to Losant over the Losant Webhook and trigger this workflow. Each time this workflow runs, new data will be displayed in the Debug Panel as shown below.
... ... @@ -73,39 +73,68 @@
73 73  
74 74  **Note:** If TTS is not automatically decoding your data as shown below in data.body.uplink_message.decoded_payload, then you can decode your LoRaWAN device data in this Losant Application Workflow. Check out the blog post [[How To Decode and Visualize Your LoRaWAN Sensor Data Using TTS and Losant>>url:https://www.losant.com/blog/how-to-decode-and-visualize-your-lorawan-sensor-data-using-the-things-network-and-losant]] to learn more about decoding LoRaWAN data in Losant.
75 75  
84 +[[image:image-20220905085115-11.png]]
85 +
86 +
87 +
76 76  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image020.jpg]]
77 77  
78 78  == Create a device ==
79 79  
92 +
93 +[[image:image-20220905085132-12.png]]
94 +
95 +
80 80  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.jpg]]
81 81  
82 82  Select the appropriate equipment. In this example, select a Standalone equipment
83 83  
100 +[[image:image-20220905085201-13.png]]
101 +
84 84  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image024.jpg]]
85 85  
86 86  Name is required, others can be added later
87 87  
106 +[[image:image-20220905085219-14.png]]
107 +
88 88  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image026.jpg]]
89 89  
90 90  Add equipment in the workflow so that data can flow to the equipment
91 91  
112 +[[image:image-20220905085236-15.png]]
113 +
92 92  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.jpg]]
93 93  
94 -Refer to the data in debug and add parameters to the device[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.jpg]]
116 +Refer to the data in debug and add parameters to the device
95 95  
118 +[[image:image-20220905085253-16.png]][[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.jpg]]
119 +
120 +
96 96  Create a new dashboard
97 97  
123 +[[image:image-20220905085323-17.png]]
124 +
98 98  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image032.jpg]]
99 99  
100 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.jpg]]
127 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.jpg]][[image:image-20220905085337-18.png]]
101 101  
129 +
102 102  Select the appropriate template
103 103  
132 +[[image:image-20220905085355-19.png]]
133 +
104 104  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.jpg]]
105 105  
106 106  Set beacon and position
107 107  
138 +[[image:image-20220905085417-20.png]]
139 +
140 +
141 +
142 +[[image:image-20220905085437-21.png]]
143 +
108 108  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image038.jpg]]
109 109  
110 110  [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image040.jpg]]
111 111  
148 +
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0