Changes for page 2 Script

Last modified by Devin Chen on 2025/06/06 14:03

From version 11.1
edited by Jim(Forgotten)
on 2022/07/09 17:01
Change comment: There is no comment for this version
To version 9.1
edited by Jim(Forgotten)
on 2022/07/09 16:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -256,7 +256,7 @@
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 -
259 +
260 260   product2=addr_getshort("@Product 2")/10,
261 261   product3=addr_getshort("@Product 3")/10,
262 262   product4=addr_getshort("@Product 4")/10,
... ... @@ -263,7 +263,7 @@
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 -
266 +
267 267   }
268 268   local jsAlarm = { HPC = addr_getbit("@B_25395#W0.00"),
269 269   ODPC = addr_getbit("@B_25395#W0.01"),
... ... @@ -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 -
282 +
283 283   }
284 284  \\ ~-~- ("@B_25395#CIO1.02")
285 285   mq.m:publish("mqtt-v-box-epsilon-fd300", json.encode(js) , 0, 0)
... ... @@ -706,86 +706,73 @@
706 706  
707 707  Login aws account and click“Connect an IoT device”
708 708  
709 -[[image:image-20220709165402-1.png]]
709 +[[image:图片1.png]]
710 710  
711 -[[image:image-20220709165402-2.png]]
711 +[[image:image-20220709163750-4.png]]
712 712  
713 -
714 714  === **Create policy** ===
715 715  
716 716  Click “Secure”~-~-->“Policies”~-~-->“Create policy”~-~-->Click “Create”
717 717  
718 -[[image:image-20220709165402-3.png]]
717 +[[image:image-20220709163750-5.png]]
719 719  
720 720  Name the policy~-~-->Click “JSON”~-~-->Copy the following content~-~-->Click “Create”
721 721  
722 -[[image:image-20220709165402-5.png]]
721 +[[image:image-20220709163750-7.png]]
723 723  
724 -[[image:image-20220709165402-4.png]]
723 +[[image:image-20220709163750-6.png]]
725 725  
726 -{{code language="LUA"}}
727 727  {
728 728  
729 -  "Version": "2012-10-17",
727 + "Version": "2012-10-17",
730 730  
731 -  "Statement": [
729 + "Statement": [
732 732  
733 -    {
731 + {
734 734  
735 -      "Effect": "Allow",
733 + "Effect": "Allow",
736 736  
737 -      "Action": [
735 + "Action": [
738 738  
739 -        "iot:Connect",
737 + "iot:Connect",
740 740  
741 -        "iot:Publish",
739 + "iot:Publish",
742 742  
743 -        "iot:Subscribe",
741 + "iot:Subscribe",
744 744  
745 -        "iot:Receive",
743 + "iot:Receive",
746 746  
747 -        "greengrass:Discover"
745 + "greengrass:Discover"
748 748  
749 -      ],
747 + ],
750 750  
751 -      "Resource": "*"
749 + "Resource": "*"
752 752  
753 -    }
751 + }
754 754  
755 -  ]
753 + ]
756 756  
757 757  }
758 -{{/code}}
759 759  
760 -1. **Create things**
757 +=== **Create things** ===
761 761  
762 762  Click “Manage”~-~-->“Things”~-~-->“Create things”~-~-->“Create single thing”
763 763  
761 +[[image:image-20220709163750-8.png]]
764 764  
765 -|
766 -| |[[image:image-20220709165402-6.png]]
763 +[[image:image-20220709163750-9.png]]
767 767  
768 -
769 -|
770 -| |[[image:image-20220709165402-7.png]]
771 -
772 -|
773 -| |[[image:image-20220709165402-8.png]]
774 -
775 775  Name the thing~-~-->Click “Next”
776 776  
767 +[[image:image-20220709163750-10.png]]
777 777  
778 778  Select the way to create certificate
779 779  
771 +[[image:image-20220709163750-11.png]]
780 780  
781 -|
782 -| |[[image:image-20220709165402-9.png]]
783 -
784 784  Select policy
785 785  
786 786  
787 -|
788 -| |[[image:image-20220709165402-10.png]]
789 789  
790 790  
791 791  
... ... @@ -797,14 +797,8 @@
797 797  
798 798  
799 799  |
800 -| |[[image:image-20220709165402-11.png]]
787 +| |[[image:image-20220709163750-13.png]]
801 801  
802 -
803 -
804 -
805 -
806 -
807 -
808 808  1. **Test with MQTT.fx tool**
809 809  
810 810  Click “View Setting” to get the “Broker Adress”
... ... @@ -811,21 +811,13 @@
811 811  
812 812  
813 813  |
814 -| |[[image:image-20220709165402-12.png]]
795 +| |[[image:image-20220709163750-14.png]]
815 815  
816 816  |
817 -| |[[image:image-20220709165402-13.png]]
798 +| |[[image:image-20220709163750-15.png]]
818 818  
819 -
820 -
821 -
822 -
823 -
824 -
825 -
826 -
827 827  |
828 -| |[[image:image-20220709165402-14.png]]
801 +| |[[image:image-20220709163750-16.png]]
829 829  
830 830  Create one connection in MQTT.fx tool, set broker port as 8883.
831 831  
... ... @@ -833,18 +833,16 @@
833 833  
834 834  
835 835  |
836 -| |[[image:image-20220709165402-15.png]]
809 +| |[[image:image-20220709163750-17.png]]
837 837  
838 -
839 -
840 840  Publish message to topic “TEST”
841 841  
842 842  
843 843  |
844 -| |[[image:image-20220709165402-16.png]]
815 +| |[[image:image-20220709163750-18.png]]
845 845  
846 846  |
847 -| |[[image:image-20220709165402-17.png]]
818 +| |[[image:image-20220709163750-19.png]]
848 848  
849 849  Click”Test”~-~-->”MQTT test client”~-~-->”Subscrible to a topic”, to get message publish from MQTT.fx tool.
850 850  
... ... @@ -852,10 +852,8 @@
852 852  
853 853  
854 854  |
855 -| |[[image:image-20220709165402-18.png]]
826 +| |[[image:image-20220709163750-20.png]]
856 856  
857 -
858 -
859 859  1. **Configurate in CloudTool**
860 860  
861 861  Copy the same setting in MQTT.fx to MQTT configuration
... ... @@ -862,17 +862,14 @@
862 862  
863 863  
864 864  |
865 -| |[[image:image-20220709165402-19.png]]
834 +| |[[image:image-20220709163750-21.png]]
866 866  
867 867   Add a lua script and copy the lua demo into it.
868 868  
869 869  
870 870  |
871 -| |[[image:image-20220709165402-20.png]]
840 +| |[[image:image-20220709163750-22.png]]
872 872  
873 -
874 -
875 -
876 876  sprint = print
877 877  
878 878  ~-~-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)
... ... @@ -1059,6 +1059,4 @@
1059 1059  
1060 1060  
1061 1061  |
1062 -| |[[image:image-20220709165402-21.png]]
1063 -
1064 -
1028 +| |[[image:image-20220709163750-23.png]]
image-20220709165226-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Jim
Size
... ... @@ -1,1 +1,0 @@
1 -1.2 MB
Content
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