With the latest available TRB firmware: https://wiki.teltonika-networks.com/view/TRB140_Firmware_Downloads you can send Modbus data to AWS server.
Which one to use, is up to you but I would prefer MQTT over HTTPs for security reasons.
To start using TRB140 with AWS IoT you do not need to download any additional SDK packages. What you will need is:
- Working AWS account. To configure it correctly please try following this guide: https://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html
- To send Modbus data to AWS, go to Services -> Data to Server (if you do not see this option, enable Advanced mode, it can be done in the top right corner). Add new rule, select the protocol which you want to use (HTTPs or MQTT) then depending on the protocol, fill the URL / Host / Connection string field.
If using HTTPs URL should look like this: https://<endpoint link>:8443/topics/test
If using MQTT URL should look like this: https://a9fb89gxgcn2-ats.iot.us-east-2.amazonaws.com
But in the port section you need to enter: 8443
In topic section: test (or the topic name on which you will be listening for incoming information).
Now, to see if you are receiving data to AWS, go to TEST and create/add any topic, for this example topic was named: anyname. To test created topic, simple use Publish to a topic feature.