Changes for page 2 Script
Last modified by Devin Chen on 2025/06/06 14:03
From version 7.1
edited by Jim(Forgotten)
on 2022/07/09 16:46
on 2022/07/09 16:46
Change comment:
There is no comment for this version
To version 12.1
edited by Jim(Forgotten)
on 2022/07/09 17:02
on 2022/07/09 17:02
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 22 added, 0 removed)
- image-20220709165226-1.png
- image-20220709165402-1.png
- image-20220709165402-10.png
- image-20220709165402-11.png
- image-20220709165402-12.png
- image-20220709165402-13.png
- image-20220709165402-14.png
- image-20220709165402-15.png
- image-20220709165402-16.png
- image-20220709165402-17.png
- image-20220709165402-18.png
- image-20220709165402-19.png
- image-20220709165402-2.png
- image-20220709165402-20.png
- image-20220709165402-21.png
- image-20220709165402-3.png
- image-20220709165402-4.png
- image-20220709165402-5.png
- image-20220709165402-6.png
- image-20220709165402-7.png
- image-20220709165402-8.png
- image-20220709165402-9.png
Details
- Page properties
-
- Content
-
... ... @@ -256,15 +256,13 @@ 256 256 sv=addr_getshort("@SV Silicone")/10, 257 257 pv=addr_getshort("@PV Silicone")/10, 258 258 product1=addr_getshort("@Product 1")/10, 259 - 260 - product2=addr_getshort("@Product 2")/10, 259 +\\ product2=addr_getshort("@Product 2")/10, 261 261 product3=addr_getshort("@Product 3")/10, 262 262 product4=addr_getshort("@Product 4")/10, 263 263 ice1=addr_getshort("@Ice condenser 1")/10, 264 264 ice2=addr_getshort("@Ice condenser 2")/10, 265 265 vacuum=addr_getfloat("@Vacuum") 266 - 267 - } 265 +\\ } 268 268 local jsAlarm = { HPC = addr_getbit("@B_25395#W0.00"), 269 269 ODPC = addr_getbit("@B_25395#W0.01"), 270 270 MTPC=addr_getbit("@B_25395#W0.02"), ... ... @@ -279,7 +279,7 @@ 279 279 FSE=addr_getbit("@B_25395#W2.04"), 280 280 AVVSVV=addr_getbit("@B_25395#W1.12"), 281 281 ICHT=addr_getbit("@B_25395#W3.06") 282 - 280 + 283 283 } 284 284 \\ ~-~- ("@B_25395#CIO1.02") 285 285 mq.m:publish("mqtt-v-box-epsilon-fd300", json.encode(js) , 0, 0) ... ... @@ -706,74 +706,85 @@ 706 706 707 707 Login aws account and click“Connect an IoT device” 708 708 709 -[[image:image-2022070916 4650-1.png]]707 +[[image:image-20220709165402-1.png]] 710 710 709 +[[image:image-20220709165402-2.png]] 711 711 712 -[[image:image-20220709163750-4.png]] 713 713 714 714 === **Create policy** === 715 715 716 716 Click “Secure”~-~-->“Policies”~-~-->“Create policy”~-~-->Click “Create” 717 717 718 -[[image:image-2022070916 3750-5.png]]716 +[[image:image-20220709165402-3.png]] 719 719 720 720 Name the policy~-~-->Click “JSON”~-~-->Copy the following content~-~-->Click “Create” 721 721 722 -[[image:image-2022070916 3750-7.png]]720 +[[image:image-20220709165402-5.png]] 723 723 724 -[[image:image-2022070916 3750-6.png]]722 +[[image:image-20220709165402-4.png]] 725 725 724 +{{code language="java"}} 726 726 { 727 727 728 - 727 + "Version": "2012-10-17", 729 729 730 - 729 + "Statement": [ 731 731 732 - 731 + { 733 733 734 - 733 + "Effect": "Allow", 735 735 736 - 735 + "Action": [ 737 737 738 - 737 + "iot:Connect", 739 739 740 - 739 + "iot:Publish", 741 741 742 - 741 + "iot:Subscribe", 743 743 744 - 743 + "iot:Receive", 745 745 746 - 745 + "greengrass:Discover" 747 747 748 - 747 + ], 749 749 750 - 749 + "Resource": "*" 751 751 752 - 751 + } 753 753 754 - 753 + ] 755 755 756 756 } 756 +{{/code}} 757 757 758 - ===**Create things**===758 +1. **Create things** 759 759 760 760 Click “Manage”~-~-->“Things”~-~-->“Create things”~-~-->“Create single thing” 761 761 762 -[[image:image-20220709163750-8.png]] 763 763 764 -[[image:image-20220709163750-9.png]] 763 +| 764 +| |[[image:image-20220709165402-6.png]] 765 765 766 +| 767 +| |[[image:image-20220709165402-7.png]] 768 + 769 +| 770 +| |[[image:image-20220709165402-8.png]] 771 + 766 766 Name the thing~-~-->Click “Next” 767 767 768 -[[image:image-20220709163750-10.png]] 769 769 770 770 Select the way to create certificate 771 771 772 -[[image:image-20220709163750-11.png]] 773 773 778 +| 779 +| |[[image:image-20220709165402-9.png]] 780 + 774 774 Select policy 775 775 776 776 784 +| 785 +| |[[image:image-20220709165402-10.png]] 777 777 778 778 779 779 ... ... @@ -783,12 +783,14 @@ 783 783 784 784 785 785 786 - 787 787 | 788 -| |[[image:image-2022070916 3750-13.png]]796 +| |[[image:image-20220709165402-11.png]] 789 789 790 790 791 791 800 + 801 + 802 + 792 792 1. **Test with MQTT.fx tool** 793 793 794 794 Click “View Setting” to get the “Broker Adress” ... ... @@ -795,17 +795,20 @@ 795 795 796 796 797 797 | 798 -| |[[image:image-2022070916 3750-14.png]]809 +| |[[image:image-20220709165402-12.png]] 799 799 800 800 | 801 -| |[[image:image-2022070916 3750-15.png]]812 +| |[[image:image-20220709165402-13.png]] 802 802 803 803 804 804 805 805 806 806 818 + 819 + 820 + 807 807 | 808 -| |[[image:image-2022070916 3750-16.png]]822 +| |[[image:image-20220709165402-14.png]] 809 809 810 810 Create one connection in MQTT.fx tool, set broker port as 8883. 811 811 ... ... @@ -813,16 +813,17 @@ 813 813 814 814 815 815 | 816 -| |[[image:image-2022070916 3750-17.png]]830 +| |[[image:image-20220709165402-15.png]] 817 817 832 + 818 818 Publish message to topic “TEST” 819 819 820 820 821 821 | 822 -| |[[image:image-2022070916 3750-18.png]]837 +| |[[image:image-20220709165402-16.png]] 823 823 824 824 | 825 -| |[[image:image-2022070916 3750-19.png]]840 +| |[[image:image-20220709165402-17.png]] 826 826 827 827 Click”Test”~-~-->”MQTT test client”~-~-->”Subscrible to a topic”, to get message publish from MQTT.fx tool. 828 828 ... ... @@ -830,8 +830,9 @@ 830 830 831 831 832 832 | 833 -| |[[image:image-2022070916 3750-20.png]]848 +| |[[image:image-20220709165402-18.png]] 834 834 850 + 835 835 1. **Configurate in CloudTool** 836 836 837 837 Copy the same setting in MQTT.fx to MQTT configuration ... ... @@ -838,14 +838,16 @@ 838 838 839 839 840 840 | 841 -| |[[image:image-2022070916 3750-21.png]]857 +| |[[image:image-20220709165402-19.png]] 842 842 843 843 Add a lua script and copy the lua demo into it. 844 844 845 845 846 846 | 847 -| |[[image:image-2022070916 3750-22.png]]863 +| |[[image:image-20220709165402-20.png]] 848 848 865 + 866 + 849 849 sprint = print 850 850 851 851 ~-~-Cloud mode interface to obtain the MQTT information configured by the cloud platform: (5 returns, namely the server address, client ID, connection table, last word table, certificate table) ... ... @@ -1032,4 +1032,4 @@ 1032 1032 1033 1033 1034 1034 | 1035 -| |[[image:image-2022070916 3750-23.png]]1053 +| |[[image:image-20220709165402-21.png]]
- image-20220709165226-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.2 MB - Content
- image-20220709165402-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +200.2 KB - Content
- image-20220709165402-10.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +19.0 KB - Content
- image-20220709165402-11.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +105.9 KB - Content
- image-20220709165402-12.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +29.0 KB - Content
- image-20220709165402-13.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +158.8 KB - Content
- image-20220709165402-14.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +48.1 KB - Content
- image-20220709165402-15.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +46.9 KB - Content
- image-20220709165402-16.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +140.7 KB - Content
- image-20220709165402-17.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +12.5 KB - Content
- image-20220709165402-18.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +32.2 KB - Content
- image-20220709165402-19.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +66.6 KB - Content
- image-20220709165402-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +188.5 KB - Content
- image-20220709165402-20.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +33.3 KB - Content
- image-20220709165402-21.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +124.8 KB - Content
- image-20220709165402-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +103.9 KB - Content
- image-20220709165402-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +4.0 KB - Content
- image-20220709165402-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +66.5 KB - Content
- image-20220709165402-6.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +110.0 KB - Content
- image-20220709165402-7.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +25.4 KB - Content
- image-20220709165402-8.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +64.2 KB - Content
- image-20220709165402-9.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Jim - Size
-
... ... @@ -1,0 +1,1 @@ 1 +37.5 KB - Content