RUT965 http request

i have been using http requests to turn on and off relays, read pin out values in RUT 955. Im not able to use the same in rut956?

My http request in RUT(%%

http://1.1.1.1/cgi-bin/output?username=admin&password=admin&action=on&pin=relay

How can i turn on the relay and read digital values etc ? Are there any examples? Thanks !!!

Greetings,

As of firmware version 7.14, direct HTTP GET requests have been removed from the Teltonika devices. These functions are now handled through a more secure API interface.

You can learn more about the removal of POST/GET services here: Implementation of Read-Only System Files and Mobile and I/O POST/GET Service Removal with RutOS 7.14

For detailed information and examples on using the new API, please visit:https://developers.teltonika-networks.com/

Best Regards,
Justinas

Hey thanks for your reply. But my RUT956 version is 7.08.2 , but still no avail

Greetings,

The syntax for the POST/GET requests differs from the ones you’ve been using.

To turn on the relay, you can use a request like this:
192.168.1.1/cgi-bin/io_state?username=admin1&password=Teltonika1&pin=relay0&state=open

You can find additional examples here:

Although this page refers to the RUT955, the same commands should also work for the RUT956.

Please note that using the API offers a more reliable and secure way to manage I/O operations, but it is only available after updating to a newer firmware version. We therefore recommend updating your device to the latest firmware to take advantage of this functionality.

Best Regards,
Justinas

Thanks ! This is what i wanted .

This topic was automatically closed after 60 days. New replies are no longer allowed.