Cloud Gateway Configuration (MQTT)
Updated
by Leah
Climkit portal configuration
Add a router in the app for a specific site.
Fill out the necessary fields with the SIM card info:
PIN
PUK
APN
ICCID

Add a gateway with type mqtt

Add the default IP and port paramaters.
Add also a 4-digit PIN for the meters.

If you did not set a default IP and port above, edit each meter with the additionnal parameters:
server_ip
: 192.168.2.10
port
: 502

# Cloud Gateway (MQTT)
## Configuration
### Climkit portal configuration
Add a router in the app for a specific site.
Fill out the necessary fields with the SIM card info:
`PIN`
`PUK`
`APN`
`ICCID`

Add a gateway with type `mqtt`

Add the default IP and port paramaters.
Add also a 4-digit PIN for the meters.

If you did not set a default IP and port above, edit each meter with the additionnal parameters:
`server_ip`: `192.168.2.10`
`port`: `502`

### Router Teltonika TRB140
Insert an active SIM card in the Teltonika TRB140 router and power ON the router.
Follow the wizard to configure the following:
Configure the following:
- password (copy paste from climkit portal).
- Teltonika RMS:
Copy and paste the `Serial Number`, `IMEI` and site ID number (ex. CKT-00001). Save them on the Climkit portal.

Create a new device on the RMS portal and insert `Serial Number` and `IMEI`.
Click Submit. Go back to the router UI and click Connect:

- Update the router firmware
Click on FW VERSION on the top right of the screen > Flash New Firmware Image
Update from file and click BROWSE and select the latest image file from "module_image/teltonika" in Dropbox.
Current file name: `TRB1_R_00.07.02.1_WEBUI.bin`

- MQTT Configuration:
Switch to Mode: `ADVANCED`.
Enable: `on`
Host: `a215ef9d.eu-central-1.emqx.cloud`
Port: `15739`
Request topic: `meters/<gateway_id>/request`
Response topic: `meters/<gateway_id>/response`
Username: `dev`
Password: (saved in 1password as "EMX auth MQTT")

### RS485-Ethernet Converter
Static IP: `192.168.2.10`
Gateway: `192.168.2.1`

Baudrate: `9600`
Parity: `EVEN` (PRO380 meters) or `NONE` (Eastron meters)
Local Port Number: `502`
Work Mode: `TCP Server`

Check `Modbus TCP`

## Testing
This is how you can manually read a meter for testing purposes.

Example with PRO380 meter:


Example with Eastron meter:


Example with MTR80L-Modbus (Polier):

## Remote access
Connect to the [Teltonika RMS](https://rms.teltonika-networks.com/management/devices)
Click on the Device WebUI for the selected router and then Generate:


A link will appear below.