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