rscada / python-mbus

Python wrapper for libmbus
BSD 3-Clause "New" or "Revised" License
25 stars 28 forks source link

Mbus serial port instance #27

Open tnrajvignesh opened 5 years ago

tnrajvignesh commented 5 years ago

Hi, I managed to get the libmbus library compiled and working on my pi. I would like to use the python wrapper to develop my Mbus scanner application on Python.

In the example code, I see an Mbus instance being initialised in line 16 mbus = MBus(host="mbus-gw1", port=8888)

I would like to have Mbus on serial port /dev/TTYAMA0. Please guide me on initialising Mbus on the serial port instead of TCP.

Cougar commented 4 years ago

Use port name like this: mbus = MBus(device="/dev/TTYAMA0");