TRB140 /api/messages/actions/send "modem" field

Hi,

I am affected by API changes that force me to rewrite my software because a formerly supported API endpoint to send SMS just got removed. As others pointed out, this is a major no-go. Our devices are connected to a PC with a 1:1 ethernet connection, so there is no reason to worry about plain text passwords in the URL component (which are otherwise a stupid idea, yes)

https://developers.teltonika-networks.com/reference/trb140/7.20.3/v1.12.1/messages#post-messages-actions-send

How do I find out, what to put into the “modem” field when sending SMS? Is there an API endpoint that lists all available modems? How do I pick the right one? This info wasn’t needed in the previous API.

Greetings, André

Greetings,

The TRB140 has a single modem.

You can send a GET request to the /modems/status endpoint. The response will include the modem ID, which on most devices is “1-1”
image

More details can be found here:
https://developers.teltonika-networks.com/reference/trb140/7.20.3/v1.12.1/modems#get-modems-status

Best Regards,
Justinas

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.