Changes

58 bytes added ,  12:01, 15 December 2022
Line 104: Line 104:  
[[File:Access control rutos1.png|border|center|class=tlt-border|1004x1004px]]
 
[[File:Access control rutos1.png|border|center|class=tlt-border|1004x1004px]]
   −
====Input/Output Post/Get configuration====
+
====I/O Post/Get configuration====
 
----
 
----
 
[[RUT955_Mobile_Utilities#Post.2FGet|Post/Get]] allows you to perform action requests by writing them in the URL after your device’s IP address. Go to the:
 
[[RUT955_Mobile_Utilities#Post.2FGet|Post/Get]] allows you to perform action requests by writing them in the URL after your device’s IP address. Go to the:
* '''Services → Mobile Utilities → SMS Gateway page → Post/Get''';
+
* '''Services → Input/Output → Post/Get''';
 
* '''Enable''' Post/Get '''(1)''';
 
* '''Enable''' Post/Get '''(1)''';
 
* '''Set a username (2)''' and '''password (3)''';
 
* '''Set a username (2)''' and '''password (3)''';
Line 133: Line 133:  
<pre>#!/bin/sh
 
<pre>#!/bin/sh
   −
curl -X GET "http://84.XXX.XXX.XXX/cgi-bin/sms_send?username=name&password=password&number=00370XXXXXXXX&text=admin01 outputon"
+
curl -X GET "http:///84.XX.XXX.XX/cgi-bin/io_state?username=YOUR_USERNAME&password=YOUR_PASSWORD&pin=dout1&state=on"
    
exit 0</pre>
 
exit 0</pre>
 +
 +
'''Note''': replace YOUR_USERNAME and YOUR_PASSWORD with your Post/Get created username and password.
    
More information about '''curl -X''' command syntax [[RUT955_Mobile_Utilities#Post.2FGet|here]].
 
More information about '''curl -X''' command syntax [[RUT955_Mobile_Utilities#Post.2FGet|here]].