SMS from AllenBradley Optix panel via RUT260

I recently installed a RUT260 to send email and SMS notifications when faults occur on an Allen Bradley system.

Some simple C# was used to create an email sender and message string, and that works will routing through the RUT260 as a gateway.

However when i attempted to do the same as an SMS gateway, it would not work. Could i please get some information/documentation on how i am best to create an SMS sender that can utilize the RUT260 to send customized messages depending on the conditions identified in the Allen Bradley device?

Greetings,

Since you are already using C# scripts to send emails, the simplest way to add SMS functionality would be to use the API as well.

To avoid the need for session token management, I recommend enabling Basic Authentication on the router. This allows SMS messages to be sent using a single HTTP request.

(However, if you require additional security, you can also use session token authentication. Instructions for that method are available here: Teltonika Networks Web API)

First, you must enable basic authentication on the RUT260 (Firmware version should be newer than 07.19):

  • Navigate to System → Administration → Access Control

  • Click Edit on the HTTPS service

  • Enable the option shown in the screenshot

  • Click Save & Apply

While helping to write custom scripts is outside our technical support scope, here is the exact structure your C# HTTP request should use:

Endpoint: http://192.168.1.1/api/messages/actions/send
Method: POST
Headers:

  • Content-Type: application/json
  • Authorization: Basic [Base64_Encoded_Credentials]
    (Note: The credentials must be the string admin:password encoded in Base64)

JSON body:

{
“data”: {
“number”: “0011123456789”,
“message”: “TEST SMS MESSAGE”,
“modem”: “1-1”
}
}

I hope this helps you out. Please let me know the results.

For more information about the API, please visit this page: https://developers.teltonika-networks.com/

Best Regards,
Justinas

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